Commit Graph

263 Commits

Author SHA1 Message Date
Tim Bell
23ab3ee383 Merge 2009-02-06 09:44:58 -08:00
Xiomara Jayasena
212dd5d9b8 Added tag jdk7-b46 for changeset b60cca94e94d 2009-02-05 16:07:57 -08:00
Tim Bell
c597e8b844 Merge 2009-01-30 23:28:38 -08:00
Tim Bell
722c67692b Merge 2009-01-29 21:48:36 -08:00
Xiomara Jayasena
f32326c000 Added tag jdk7-b45 for changeset 779f966ee652 2009-01-29 13:21:18 -08:00
Maurizio Cimadamore
4021098c46 6729401: Compiler error when using F-bounded generics with free type variables
Javac applies wrong substitution to recursive type-variable bounds

Reviewed-by: jjg
2009-01-29 12:19:14 +00:00
Maurizio Cimadamore
c5d6131368 6557182: Unchecked warning *and* inconvertible types
Redundant warnings are generated when casting from intersection types

Reviewed-by: jjg
2009-01-29 12:18:19 +00:00
Maurizio Cimadamore
552a7a0e19 6315770: javac inference allows creation of strange types: Integer & Runnable
Javac does not apply glb correctly as per JLS3 15.12.2.8

Reviewed-by: jjg
2009-01-29 12:17:57 +00:00
Jonathan Gibbons
4aefa80bf1 6176978: current Javadoc's invocation and extension (Doclet) mechanisms are problematic
Reviewed-by: darcy
2009-01-27 18:38:39 -08:00
Joe Darcy
f82d6e454b 6707027: langtools/test/tools/javac/processing/model/testgetallmember/Main.java fails
Reviewed-by: jjg
2009-01-27 17:50:53 -08:00
Tim Bell
1b49bea0ad 6797871: Fix for 6797463 did not remove the jtreg tests, and it should have
Reviewed-by: jjg
2009-01-26 15:14:46 -08:00
Tim Bell
57af527fbb Merge 2009-01-24 16:35:52 -08:00
Tim Bell
e6ce4c2488 6797463: 6557199 breaks the jax-ws workspace
Reviewed-by: jjg
2009-01-24 11:07:32 -08:00
Jonathan Gibbons
cf1252d823 6795365: NetBeans projects in langtools repository are not NB6.5-friendly
Reviewed-by: mcimadamore
2009-01-23 11:23:10 -08:00
Jonathan Gibbons
72a1863490 6796965: dev-time wrapper script for javac broken
Reviewed-by: ksrini
2009-01-22 15:45:44 -08:00
Xiomara Jayasena
3112e3e065 Added tag jdk7-b44 for changeset 9d204be2281a 2009-01-22 14:42:22 -08:00
Jonathan Gibbons
f495424a45 6795030: Files in langtools build can be compiled ignoring java.home settings
Reviewed-by: mcimadamore
2009-01-21 08:21:41 -08:00
Jonathan Gibbons
15099c9ffe 6795903: fix latent build warnings in langtools repository
Reviewed-by: darcy
2009-01-20 18:23:13 -08:00
Jonathan Gibbons
981f025a85 6794582: javadoc should read files using a FileManager
Reviewed-by: darcy, bpatel
2009-01-20 15:17:45 -08:00
Maurizio Cimadamore
19b769a375 6557199: Fails to reject bad override of generic method
Javac does not correctly implement JLS3 8.4.5

Reviewed-by: jjg
2009-01-20 17:49:49 +00:00
Maurizio Cimadamore
dffa62753f 6795580: parser confused by square brackets in qualified generic cast
Parser rejects cast with qualified generic array types

Reviewed-by: jjg
2009-01-20 17:49:09 +00:00
Jonathan Gibbons
a1f31b73db 6794959: add new switch -XDexpectKeys=key,key...
Reviewed-by: mcimadamore
2009-01-19 19:36:14 -08:00
Joe Darcy
6644396543 6583626: Improve serialization support in javax.lang.model.type exception classes
Reviewed-by: jjg
2009-01-16 14:05:55 -08:00
Tim Bell
1fab872b02 Merge 2009-01-16 10:38:31 -08:00
Jonathan Gibbons
b4747d3188 6794520: MessageRetriever should be upgraded to use varargs Object..
Reviewed-by: bpatel
2009-01-15 18:06:36 -08:00
Bhavesh Patel
de73102ff4 6786682: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - HTML tag should have lang attribute
Reviewed-by: jjg
2009-01-15 17:21:11 -08:00
Xiomara Jayasena
0590d5d822 Added tag jdk7-b43 for changeset a02ba404f9c6 2009-01-15 11:46:43 -08:00
Maurizio Cimadamore
34719749c5 6558559: Extra "unchecked" diagnostic
Fixed Types.sideCast in order to suppress redundant unchecked warnings

Reviewed-by: jjg
2009-01-13 13:31:35 +00:00
Mark Mahieu
9dff8d691f 6723444: javac fails to substitute type variables into a constructor's throws clause
Added constructor's actual type info to NewClass AST node

Reviewed-by: jjg
2009-01-13 13:28:42 +00:00
Maurizio Cimadamore
f6cd370370 6665356: Cast not allowed when both qualifying type and inner class are parameterized
Fixed parser and cats conversion in order to allow cast between generic inner classes

Reviewed-by: jjg
2009-01-13 13:28:20 +00:00
Maurizio Cimadamore
795b53a014 6765045: Remove rawtypes warnings from langtools
Removed all occurrences of rawtypes warnings from langtools

Reviewed-by: jjg, bpatel
2009-01-13 13:27:14 +00:00
Bhavesh Patel
a23159ffac Merge 2009-01-08 16:34:58 -08:00
Bhavesh Patel
a2a9e39ec7 6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
Reviewed-by: jjg
2009-01-08 16:26:59 -08:00
Peter Runge
dda3b0af66 6512707: "incompatible types" after (unrelated) annotation processing
Reviewed-by: darcy
2009-01-07 14:48:29 -08:00
Tim Bell
1d9a30a4d2 Merge 2008-12-19 10:39:02 -08:00
Xiomara Jayasena
94649662ec Added tag jdk7-b42 for changeset f5855e0473e3 2008-12-18 21:34:20 -08:00
Xiomara Jayasena
b905401ddc Merge 2008-12-15 17:13:21 -08:00
Xiomara Jayasena
7582e6a1eb 6785258: Update copyright year
Update copyright for files that have been modified starting July 2008 to Dec 2008

Reviewed-by: katleman, ohair, tbell
2008-12-15 16:55:33 -08:00
Tim Bell
47b467dff2 Merge 2008-12-05 21:59:59 -08:00
Tim Bell
ecc1d3a67c Merge 2008-12-05 09:52:51 -08:00
Xiomara Jayasena
8ffbb1eee1 Added tag jdk7-b41 for changeset 6471e8a4578f 2008-12-04 11:10:35 -08:00
Jonathan Gibbons
9ed3284766 6778638: javadoc regression tests require tabs
Reviewed-by: darcy
2008-12-02 14:35:22 -08:00
Mark Wielaard
69e0e018d4 6778493: Fix (langtools) ant build to honor fcs MILESTONE setting
Reviewed-by: ohair
2008-12-01 12:15:14 -08:00
Maurizio Cimadamore
71eb016652 6776289: Regression: javac7 doesnt resolve method calls properly
Superclass' private methods shouldn't be considered during method resolution

Reviewed-by: jjg
2008-11-26 11:07:07 +00:00
Tim Bell
da14ef4113 Merge 2008-11-21 15:21:41 -08:00
Xiomara Jayasena
6683daa8c7 Added tag jdk7-b40 for changeset 5db12b3a75ea 2008-11-20 11:39:58 -08:00
Maurizio Cimadamore
454f269528 6768932: Add support for multiline diagnostics
Added basic support for multiline/tabular diagnostics

Reviewed-by: jjg
2008-11-12 14:17:03 +00:00
Tim Bell
68e605f7a4 Merge 2008-11-07 11:45:49 -08:00
Xiomara Jayasena
803f241db6 Added tag jdk7-b39 for changeset 628049ac53ed 2008-11-06 12:10:41 -08:00
Maurizio Cimadamore
caa22f1483 6763518: Impossible to suppress raw-type warnings
Check.validate(Type) should be invoked after -Xlint is augmented in Attr.visitVarDef

Reviewed-by: darcy
2008-10-28 14:05:59 +00:00
Jonathan Gibbons
49c8929c4a 6764226: ListTest fails on javap output with bad characters
Reviewed-by: darcy
2008-10-27 14:25:59 -07:00
Tim Bell
c85afdbe86 Merge 2008-10-24 20:47:47 -07:00
Maurizio Cimadamore
a21aaaa7dc 6762569: Javac crashes with AssertionError in Types.containedBy
Types.containedBy should be more liberal with UndetVars

Reviewed-by: jjg
2008-10-24 12:46:51 +01:00
Maurizio Cimadamore
418461fae2 6758789: Some method resolution diagnostic should be improved
Recent work on diagnostics left out some resolution corner cases

Reviewed-by: jjg
2008-10-24 12:46:34 +01:00
Maurizio Cimadamore
dd2a864f51 6746184: javac fails to compile call to public varargs method
Javac's resolution process should go through all steps described in JLS 15.12.2.2

Reviewed-by: jjg
2008-10-24 12:46:07 +01:00
Maurizio Cimadamore
3a7c0b423c 6680106: StackOverFlowError for Cyclic inheritance in TypeParameters with ArrayType Bounds
Javac ends up in an infinite loop while attributing mutually referring array type-parameter bounds

Reviewed-by: jjg
2008-10-24 12:45:47 +01:00
Tim Bell
d01291bb6e Merge 2008-10-23 21:56:41 -07:00
Maurizio Cimadamore
5a17e28602 6557954: Inner class type parameters doesn't get substituted when checking type well-formedness
Validator.visitTypeApply should substitute all formal typevars with actual parameters

Reviewed-by: jjg
2008-10-23 18:29:11 +01:00
Xiomara Jayasena
2531ec2c03 Added tag jdk7-b38 for changeset 62c548002ecb 2008-10-23 10:13:23 -07:00
Maurizio Cimadamore
0408a1adae 6548436: Incorrect inconvertible types error
Types.rewrite quantifiers should cope with captured type-variables properly

Reviewed-by: jjg
2008-10-23 18:10:23 +01:00
Maurizio Cimadamore
b2ffad7180 6487370: javac incorrectly gives ambiguity warning with override-equivalent abstract inherited methods
Javac should not compare erased return types when checking for ambiguity errors during overload resolution

Reviewed-by: jjg
2008-10-23 18:00:05 +01:00
Maurizio Cimadamore
90e6379916 6711619: javac doesn't allow access to protected members in intersection types
Accordingly to new accessibility rules all members of intersection types (but private ones) should be accessible

Reviewed-by: jjg
2008-10-23 17:59:43 +01:00
Maurizio Cimadamore
be7b82ffe4 6732484: Bound error on wildcard code
Check.checkExtends should cope with captured type-variables

Reviewed-by: jjg
2008-10-23 17:59:16 +01:00
Jonathan Gibbons
7d2872604d 6759996: ignore empty entries on paths
Reviewed-by: darcy
2008-10-20 13:42:45 -07:00
Tim Bell
b99ff1ffeb Merge 2008-10-17 16:47:54 -07:00
Jonathan Gibbons
fac7f6fd8a 6760930: empty element on bootclasspath breaks test/tools/apt/Discovery/discovery.sh
Reviewed-by: darcy
2008-10-17 16:06:32 -07:00
Jonathan Gibbons
8175eb6c0e 6760805: empty element on bootclasspath breaks test/tools/apt/Compile/compile.sh
Reviewed-by: darcy
2008-10-17 10:34:06 -07:00
Jonathan Gibbons
c6c8882d70 6760500: test com/sun/javadoc/testSupplementary/TestSupplementary.java is not same-VM safe
Reviewed-by: darcy
2008-10-16 16:53:56 -07:00
Maurizio Cimadamore
1cfe36b8a1 6760226: test/tools/javap/T6622260.java fails with specific locale settings
Changed the regression test in order to make it more robust w.r.t. to locale settings

Reviewed-by: jjg
2008-10-16 18:07:37 +01:00
Jonathan Gibbons
72ffb28a4d 6759810: bad regression test causes source file to be deleted
Reviewed-by: mcimadamore
2008-10-16 07:39:53 -07:00
Jonathan Gibbons
ad3ca8d8f2 6759775: RegularFileObject.inferBinaryName gives bad result on empty path
Reviewed-by: mcimadamore
2008-10-16 07:30:13 -07:00
Jonathan Gibbons
a75a5f00d6 6759796: test/tools/javac/6348193/T6348193.java fails if there are empty entries on the bootclasspath
Reviewed-by: darcy
2008-10-15 13:20:03 -07:00
Jonathan Gibbons
a2201c5ae7 6759795: test/tools/apt/Basic/print.sh may fail depending on jtreg options
Reviewed-by: darcy
2008-10-15 11:13:23 -07:00
Maurizio Cimadamore
0f7dc30816 6759682: APT: compiler message file broken after refactoring of com.sun.tools.javac.util.Message
JavacMessages should refresh its own bundle cache when a new resource bundle is added by APT

Reviewed-by: jjg
2008-10-15 17:23:55 +01:00
Jonathan Gibbons
55ef4bc22e 6748541: javadoc should be reusable
Reviewed-by: bpatel
2008-10-15 08:07:59 -07:00
Maurizio Cimadamore
1dc1dcab49 6759143: com.sun.tools.javac.util.Messages is obsolete and should be removed
Push for 6406133 should have removed com.sun.tools.javac.util.Messages

Reviewed-by: jjg
2008-10-14 17:05:48 +01:00
Tim Bell
4fddc7cbee Merge 2008-10-10 13:29:11 -07:00
Xiomara Jayasena
16155a7d48 Added tag jdk7-b37 for changeset 076a3cde30d5 2008-10-09 11:13:34 -07:00
Maurizio Cimadamore
c09e705e04 6586091: javac crashes with StackOverflowError
Types.adapt should avoid infinite loops by exploiting a local cache

Reviewed-by: jjg
2008-10-09 16:21:04 +01:00
Maurizio Cimadamore
68c9df4110 6731573: diagnostic output should optionally include source line
Added an -XD option to optionally prints out source lines in error messages

Reviewed-by: jjg
2008-10-09 16:19:13 +01:00
Maurizio Cimadamore
7a442ce178 6406133: JCDiagnostic.getMessage ignores locale argument
Compiler API should take into account locale settings

Reviewed-by: jjg
2008-10-09 16:07:38 +01:00
Maurizio Cimadamore
ab5f1cb24b 6724345: incorrect method resolution for enum classes entered as source files
Enum's abstract methods shouldn't be skipped during method resolution

Reviewed-by: jjg
2008-10-09 16:04:29 +01:00
Maurizio Cimadamore
67339c0aab 6738538: javac crashes when using a type parameter as a covariant method return type
Capture conversion should be applied when acccessing a member of an intersection type

Reviewed-by: jjg
2008-10-09 16:02:29 +01:00
Maurizio Cimadamore
9315b88d67 6751514: Unary post-increment with type variables crash javac during lowering
Lower.abstractRval should take into account parenthesized expressions

Reviewed-by: jjg
2008-10-09 15:56:20 +01:00
Jonathan Gibbons
98ab03e7e5 6749967: regression tests for apt should be same-vm friendly
Reviewed-by: darcy
2008-10-07 15:39:19 -07:00
Jonathan Gibbons
1a0a9d1a6f 6748546: javadoc API should be classloader-friendly
Reviewed-by: bpatel
2008-10-06 16:57:15 -07:00
Tim Bell
ebc51f0813 Merge 2008-10-04 22:59:05 -07:00
Tim Bell
7fe650bc36 Merge 2008-10-04 22:49:54 -07:00
Xiomara Jayasena
4dcb55b4b5 6754988: Update copyright year
Update for files that have been modified starting July 2008

Reviewed-by: ohair, tbell
2008-10-02 19:58:40 -07:00
Jonathan Gibbons
02332d6aa7 6748601: javadoc API should allow varargs use
Reviewed-by: bpatel
2008-10-01 16:26:33 -07:00
Tim Bell
b670ed41d6 Merge 2008-09-29 22:11:26 -07:00
Peng Li
e7058ee0c3 6739427: -Xlint:processing not recognized as an option
Reviewed-by: darcy, jjg
2008-09-29 11:38:56 -07:00
Maurizio Cimadamore
82a7a9f030 6753718: raw type warnings should be suprresed during a langtools build
Fixed build.properties in order to suppress raw type warnings

Reviewed-by: jjg
2008-09-29 15:30:27 +01:00
Maurizio Cimadamore
5fc92453b6 6747671: -Xlint:rawtypes
Add an Xlint option for detecting all raw types usages (ccc-approved)

Reviewed-by: jjg
2008-09-29 12:00:29 +01:00
Maurizio Cimadamore
a8d5a91270 6735840: Need a type/symbol visitor printer
Added type/symbol visitor printer with support for localization

Reviewed-by: jjg
2008-09-29 11:48:09 +01:00
Maurizio Cimadamore
ec0853a113 6500343: compiler generates bad code when translating conditional expressions
TransTypes needs to deal with intersection types coming from conditional expressions

Reviewed-by: jjg
2008-09-29 11:34:43 +01:00
Tim Bell
5e2a37a5a0 Merge 2008-09-26 15:32:47 -07:00
Xiomara Jayasena
f3455aa584 Added tag jdk7-b36 for changeset 7798f9e88bf9 2008-09-25 12:54:13 -07:00
Jonathan Gibbons
fc58b54ba3 6420151: need to improve byfile compile policy to eliminate footprint issues
Reviewed-by: mcimadamore
2008-09-23 10:44:51 -07:00
Jonathan Gibbons
4cea49cf1c 6744408: Extra ouput is appearing in stderr
Reviewed-by: bpatel
2008-09-18 18:39:44 -07:00