Alan Bateman
68c23b7878
7006126: (fs) Updates to file system API (1/2011)
...
Reviewed-by: jjg
2011-01-28 09:25:20 +00:00
Jim Holmlund
50d526442a
7015482: jtreg test tools/javac/diags/MessageInfo.java fails when test/ dir is not in langtools repo
...
Don't fail if the needed file isn't present, if running under jtreg.
Reviewed-by: jjg
2011-01-28 00:09:38 -08:00
Jonathan Gibbons
de3bde6688
7013272: Automatically generate info about how compiler resource keys are used
...
Reviewed-by: mcimadamore
2011-01-26 13:45:25 -08:00
Jonathan Gibbons
a184b53cec
6554097: "final" confuses @SuppressWarnings
...
Reviewed-by: mcimadamore
2011-01-26 11:20:19 -08:00
Joe Darcy
ec50779b72
7013420: Project Coin: remove general expression support from try-with-resources statement
...
Reviewed-by: mcimadamore, jjg
2011-01-25 17:02:56 -08:00
Jonathan Gibbons
bcf09ec04f
6988106: javac report 'java.lang.IllegalMonitorStateException'
...
Reviewed-by: ksrini
2011-01-24 16:38:56 -08:00
Jonathan Gibbons
1ab227adc4
6581775: Fix the white space problem in javac shell tests
...
Reviewed-by: mcimadamore
2011-01-24 16:34:25 -08:00
Jonathan Gibbons
1d1fd8962d
6963934: JCCompilationUnit.getImports does not report all imports
...
Reviewed-by: mcimadamore
2011-01-24 16:17:33 -08:00
Maurizio Cimadamore
6bd5b48ca7
7013865: varargs: javac crashes during overload resolution with generic varargs
...
Fixed regression with varargs overload resolution that leads javac to crash
Reviewed-by: jjg
2011-01-24 15:45:41 +00:00
Maurizio Cimadamore
96d0749bfc
6569633: Varargs: parser error when varargs element type is an array
...
Explicit error message when old-style array syntax is mixed with varargs
Reviewed-by: jjg
2011-01-24 15:45:24 +00:00
Maurizio Cimadamore
13ecf26ded
6510286: Wording of javac error for inner classes
...
'inner classes cannot have static declarations' message needs to be reworked
Reviewed-by: jjg
2011-01-24 15:45:06 +00:00
Maurizio Cimadamore
b77effad6c
6968793: issues with diagnostics
...
Several diagnostic improvements
Reviewed-by: jjg
2011-01-24 15:44:51 +00:00
Maurizio Cimadamore
df54c56a04
6943278: spurious error message for inference and type-variable with erroneous bound
...
Type-inference should ignore erroneous bounds
Reviewed-by: jjg
2011-01-24 15:44:15 +00:00
Jonathan Gibbons
9a6afb10e4
6419926: JSR 199: FileObject.toUri() generates URI without schema (Solaris)
...
Reviewed-by: mcimadamore
2011-01-14 11:45:19 -08:00
Maurizio Cimadamore
0dae258b02
6949040: java.dyn package must be compiled with -target 7 or better
...
Issue error (rather than warning) when @PolymorphicSignature is found and target < 7
Reviewed-by: jjg
2011-01-14 09:46:44 +00:00
Maurizio Cimadamore
ede9924b4e
7007432: Test generic types well-formedness
...
Add a new kind of check (well-formedness of generic type w.r.t. declared bounds) in the type-harness
Reviewed-by: jjg
2011-01-14 09:45:52 +00:00
Maurizio Cimadamore
7d90979693
6992698: JSR 292: remove support for transient syntax in polymorphic signature calls
...
Special syntax to denote indy return type through type parameters should be removed (and cast shall be used instead)
Reviewed-by: jjg, jrose
2011-01-14 09:45:04 +00:00
Jonathan Gibbons
e66871ae10
6430241: Hard to disable symbol file feature through API
...
Reviewed-by: mcimadamore
2011-01-13 11:48:10 -08:00
Jonathan Gibbons
12f8b2493e
6993305: starting position of a method without modifiers and with type parameters is incorrect
...
Reviewed-by: mcimadamore
2011-01-11 08:05:28 -08:00
Jonathan Gibbons
43e78a8d44
6992999: fully remove JSR 308 from langtools
...
Reviewed-by: mcimadamore
2011-01-10 14:57:59 -08:00
Maurizio Cimadamore
21c037bb9b
7010194: several langtools regression failures after JSR 292 changes (b123)
...
Some regression tests rely on unsupported JSR 292 features
Reviewed-by: jjg
2011-01-05 09:59:01 +00:00
Lana Steuck
34c5f24321
Merge
2011-01-04 17:10:35 -08:00
Kelly O'Hair
84b5875f26
6962318: Update copyright year
...
Reviewed-by: xdono
2010-12-28 15:54:52 -08:00
Jim Holmlund
4157467833
6982992: Tests CheckAttributedTree.java, JavacTreeScannerTest.java, and SourceTreeeScannerTest.java timeout
...
Hoist some invariant code out of a loop
Reviewed-by: ksrini
2010-12-23 12:29:21 -08:00
Kumar Srinivasan
5032fcd7b5
6567415: Neverending loop in ClassReader
...
Reviewed-by: jjg
2010-12-18 09:38:39 -08:00
Jonathan Gibbons
facb1c1b6d
7006564: NPE in javac running test/tools/javac/nio/compileTest/CompileTest.java
...
Reviewed-by: mcimadamore, alanb
2010-12-15 06:39:51 -08:00
Jonathan Gibbons
cfe2f7eb5d
6999891: DefaultFileManager incorrect
...
Reviewed-by: darcy
2010-12-14 14:17:20 -08:00
Maurizio Cimadamore
6ef5228632
6993978: Project Coin: Compiler support of annotation to reduce varargs warnings
...
Reviewed-by: jjg, darcy
2010-12-13 15:11:00 -08:00
Maurizio Cimadamore
ecb30ce139
7006109: Add test library to simplify the task of writing automated type-system tests
...
Types.java needs to be more stress-tested
Reviewed-by: jjg
2010-12-13 14:56:50 +00:00
Jonathan Gibbons
1ce40f31dd
6504896: TreeMaker.Literal(Object) does not support Booleans
...
Reviewed-by: mcimadamore
2010-12-10 07:38:28 -08:00
Maurizio Cimadamore
450d85b95a
6199075: Unambiguous varargs method calls flagged as ambiguous
...
Javac does not implement overload resolution w.r.t. varargs methods as described in the JLS
Reviewed-by: jjg
2010-12-10 15:24:17 +00:00
Maurizio Cimadamore
ba8f15cef1
7005671: Regression: compiler accepts invalid cast from X[] to primitive array
...
Regression in type conversion after 292 changes
Reviewed-by: jjg
2010-12-10 15:23:42 +00:00
Jonathan Gibbons
cc42fec255
6985202: no access to doc comments from Tree API
...
Reviewed-by: mcimadamore
2010-12-09 08:48:08 -08:00
Jonathan Gibbons
3244279bb2
4917091: javac rejects array over 128 in length
...
Reviewed-by: mcimadamore
2010-12-09 08:24:42 -08:00
Maurizio Cimadamore
d2e437cb96
7005371: Multicatch: assertion error while generating LocalVariableTypeTable attribute
...
Compiler crashes with assertion error if '-g' option is passed and source contains multicatch
Reviewed-by: jjg
2010-12-09 15:50:57 +00:00
Maurizio Cimadamore
929d3fd3f5
6476118: compiler bug causes runtime ClassCastException for generics overloading
...
Compiler allows bridge methods to override unrelated method
Reviewed-by: jjg
2010-12-09 15:50:34 +00:00
Maurizio Cimadamore
e8d1ae243d
7005095: Cast: compile reject sensible cast from final class to interface
...
A previous fix to cast conversion has made the compiler too strict w.r.t. final cast
Reviewed-by: jjg
2010-12-09 15:50:10 +00:00
Jonathan Gibbons
8e9c506c6c
6999210: javac should be able to warn of anomalous conditions in classfiles
...
Reviewed-by: mcimadamore, darcy
2010-12-07 14:13:25 -08:00
Maurizio Cimadamore
5cdc149cc1
5088429: varargs overloading problem
...
Compiler implementation for overload resolution w/ varargs method does not match JLS
Reviewed-by: jjg
2010-12-06 11:51:02 +00:00
Maurizio Cimadamore
47f6d8a95e
7002070: If catch clause has an incompatible type, error pointer points to first exception type in list
...
Attribution should check each component of a disjunctive type separately, rather than checking the corresponding lub()
Reviewed-by: jjg
2010-12-06 11:50:37 +00:00
Maurizio Cimadamore
63f05334a6
7003744: Compiler error concerning final variables
...
Flow analysis does not cleanup init/uninint bit masks after for-loop
Reviewed-by: jjg
2010-12-06 11:49:00 +00:00
Maurizio Cimadamore
8644a0bc46
7002837: Diamond: javac generates diamond inference errors when in 'finder' mode
...
Javac should disable error messages when analyzing instance creation expression in 'diamond finder' mode
Reviewed-by: jjg
2010-12-03 16:32:31 +00:00
Maurizio Cimadamore
7613f7a72c
6956758: NPE in com.sun.tools.javac.code.Symbol - isSubClass
...
Use of TransTypes.cast() instead of TransTypes.coerce() causes NPE in Lower
Reviewed-by: jjg
2010-12-03 16:31:23 +00:00
Per Bothner
e07cc985e8
7004029: intermittent failures compiling pack200
...
Remove "bogus" entries from star-import scopes
Reviewed-by: mcimadamore
2010-12-02 16:37:23 -08:00
Jonathan Gibbons
be8a607fef
6900037: javac should warn if earlier -source is used and bootclasspath not set
...
Reviewed-by: darcy
2010-11-29 14:15:36 -08:00
Maurizio Cimadamore
3e65664acf
6995200: JDK 7 compiler crashes when type-variable is inferred from expected primitive type
...
15.12.2.8 should use boxing when expected type in assignment context is a primitive type
Reviewed-by: jjg
2010-11-23 11:08:43 +00:00
Jonathan Gibbons
bdc7e81168
6999438: remove support for exotic identifiers from JDK 7
...
Reviewed-by: mcimadamore
2010-11-18 16:13:11 -08:00
Maurizio Cimadamore
80fdc078e7
6999635: Multicatch: crash while compiling simple code with a multicatch parameter
...
Missing erasure when computing stackmaps leads to assertion error
Reviewed-by: darcy
2010-11-15 14:41:21 +00:00
Maurizio Cimadamore
3a681162e4
6985719: Alike methods in interfaces (Inheritance and Overriding)
...
Javac should report error when interface inherits unrelated method with same erasure
Reviewed-by: jjg
2010-11-15 13:50:53 +00:00
Joe Darcy
f9f932a9f3
6991528: Support making Throwable.suppressedExceptions immutable
...
Reviewed-by: mcimadamore
2010-11-14 07:16:46 -08:00
Maurizio Cimadamore
64789c2491
6970016: Clean up ARM/try-with-resources implementation
...
Changed Xlint option name from -Xlint:arm to -Xlint:try
Reviewed-by: jjg
2010-11-12 12:34:18 +00:00
Maurizio Cimadamore
bb03754fd1
6999067: cast for invokeExact call gets redundant cast to <type> warnings
...
Xlint:cast should not report cast used in order to specify target type in polymorphic signature calls
Reviewed-by: jjg
2010-11-12 12:33:52 +00:00
Maurizio Cimadamore
8f61f3fcff
6598108: com.sun.source.util.Trees.isAccessible incorrect
...
JavacTrees' version of isAccessible should take into account enclosing class accessibility
Reviewed-by: jjg
2010-11-12 12:32:43 +00:00
Maurizio Cimadamore
83fb083bfa
6996914: Diamond inference: problem when accessing protected constructor
...
Special resolution scheme for diamond inference needs to open up protected constructors in anon inner class creation
Reviewed-by: jjg
2010-11-10 12:37:25 +00:00
Jonathan Gibbons
1546b42862
6997958: test tools/javac/api/T6412669.java fails in PIT
...
Reviewed-by: darcy
2010-11-09 17:49:24 -08:00
Per Bothner
aa4bee613c
6998063: new Scope impl to fix Scope performance issues
...
Reviewed-by: jjg
2010-11-06 13:53:48 -07:00
Maurizio Cimadamore
e202a05c38
6714835: Safe cast is rejected (with warning) by javac
...
Rules for unchecked cast conversion do not take into account type-containment
Reviewed-by: jjg
2010-11-04 12:58:29 +00:00
Maurizio Cimadamore
d4d5f60edc
6993963: Project Coin: Use precise exception analysis for effectively final catch parameters
...
More precise rethrow analysis should be extended to effectively-final exception parameters. Multicatch parameters should be made implicitly final.
Reviewed-by: jjg, darcy
2010-11-04 12:57:48 +00:00
Maurizio Cimadamore
9b7bc21bb0
6939780: add a warning to detect diamond sites
...
Added hidden compiler flag '-XDfindDiamond' to detect 'diamondifiable' sites
Reviewed-by: jjg
2010-11-02 12:01:35 +00:00
Maurizio Cimadamore
ac9f97939f
6996415: Override bridges causes compiler-generated code to end up with synthetic infinite loop
...
Temporarily disable fix for override bridges (6337171)
Reviewed-by: jjg
2010-11-02 12:00:54 +00:00
Jonathan Gibbons
49e996e3c1
6994946: option to specify only syntax errors as unrecoverable
...
Reviewed-by: darcy, mcimadamore
2010-10-28 18:58:43 -07:00
Jonathan Gibbons
35cc8afcf9
6993301: catch parameters do not have correct kind (i.e. ElementKind.EXCEPTION_PARAMETER)
...
Reviewed-by: mcimadamore
2010-10-22 14:04:33 -07:00
Jonathan Gibbons
bf00a77f2d
6987760: remove 308 support from JDK7
...
Reviewed-by: darcy, mcimadamore
2010-10-19 15:02:48 -07:00
Maurizio Cimadamore
4e9ee94a4d
6991980: polymorphic signature calls don't share the same CP entries
...
Wrong use of attr env in Infer.java prevents sharing of CP entries for PS calls
Reviewed-by: darcy, jrose
2010-10-18 19:14:36 +01:00
Jonathan Gibbons
b4b4ed03ec
6908476: test/tools/javac/T6705935.java fails if non-zip files found on platform class path
...
Reviewed-by: darcy
2010-10-12 14:47:51 -07:00
Jonathan Gibbons
3f57abb0ba
6988407: javac crashes running processor on errant code; it used to print error message
...
Reviewed-by: darcy
2010-10-12 13:15:46 -07:00
Jonathan Gibbons
1da6aa89d2
6990379: two examples fail under CheckExamples on Windows
...
Reviewed-by: darcy
2010-10-07 15:26:32 -07:00
Jonathan Gibbons
5967ec228d
6988836: A new JavacElements is created for each round of annotation processing
...
Reviewed-by: darcy
2010-10-05 11:34:43 -07:00
Joe Darcy
4231c49495
6983738: Use a JavacTestingAbstractProcessor
...
Reviewed-by: jjg
2010-09-29 23:27:57 -07:00
Jonathan Gibbons
ef791d4adb
6502392: Invalid relative names for Filer.createResource and Filer.getResource
...
Reviewed-by: darcy
2010-09-29 14:01:37 -07:00
Athijegannathan Sundararajan
55a531c45f
6967842: Element not returned from tree API for ARM resource variables
...
Reviewed-by: jjg, darcy
2010-09-28 22:46:36 +05:30
Jonathan Gibbons
95a1a60964
6986246: Trees object is round-specific
...
Reviewed-by: darcy
2010-09-27 17:28:49 -07:00
Jonathan Gibbons
2730836d77
6877202: Elements.getDocComment() is not getting JavaDocComments
...
6861094: javac -Xprint <file> does not print comments
6985205: access to tree positions and doc comments may be lost across annotation processing rounds
Reviewed-by: darcy
2010-09-27 14:20:39 -07:00
Lana Steuck
78db31beb6
Merge
2010-09-25 12:02:32 -07:00
Athijegannathan Sundararajan
28c94557eb
6587674: NoClassdefFound when anonymously extending a class
...
Reviewed-by: jjg, mcimadamore
2010-09-22 20:53:34 +05:30
Maurizio Cimadamore
05fb73163c
6863465: javac doesn't detect circular subclass dependencies via qualified names
...
Class inheritance circularity check should look at trees, not just symbols
Reviewed-by: jjg
2010-09-18 14:24:09 -07:00
Maurizio Cimadamore
cd3371e702
5088624: cannot find symbol message should be more intelligent
...
Resolve.java should keep track of all candidates found during a method resolution sweep to generate more meaningful diagnostics
Reviewed-by: jjg
2010-09-18 09:56:23 -07:00
Lana Steuck
dc37688eb9
Merge
2010-09-16 11:20:36 -07:00
Jonathan Gibbons
e0caf9f660
6985115: tests create too much output
...
Reviewed-by: mcimadamore
2010-09-16 09:57:37 -07:00
Jonathan Gibbons
1144807f1f
6985181: Annotations lost from classfile
...
Reviewed-by: mcimadamore
2010-09-16 09:56:25 -07:00
Kelly O'Hair
fd65dbfc50
6982137: Rebranding pass 2 - missed copyright changes
...
Reviewed-by: mbykov
2010-09-09 16:29:40 -07:00
Jonathan Gibbons
949983f6b0
6983239: TreeScanner does not scan default value for method
...
Reviewed-by: mcimadamore
2010-09-09 13:31:28 -07:00
Athijegannathan Sundararajan
a5aa8a0943
6900149: IllegalStateException when compiling same files and DiagnosticListener is set
...
Reviewed-by: jjg
2010-09-09 09:42:45 +05:30
Maurizio Cimadamore
4da9c57770
6970584: Flow.java should be more error-friendly
...
Added a post-attribution visitor that fixup uninitialized types/symbol in AST after erroneous attribution
Reviewed-by: jjg
2010-09-07 17:33:43 +01:00
Maurizio Cimadamore
c1ac5e8862
6981185: com.sun.tools.model.JavacTypes.contains() calls Type.contains instead of Types.containsType
...
Wrong implementation is causing trivial containment tests to fail unexpectedly (when such tests are executed using compiler API)
Reviewed-by: jjg
2010-09-07 17:32:52 +01:00
John Rose
cd74d63c12
6979327: method handle invocation should use casts instead of type parameters to specify return type
...
Infer return type for polymorphic signature calls according to updated JSR 292 draft
Reviewed-by: jjg
2010-09-07 17:32:27 +01:00
Maurizio Cimadamore
73825fc885
6337171: javac should create bridge methods when type variable bounds restricted
...
Javac should add synthetic overrides for inherited abstract methods in order to preserve binary compatibility
Reviewed-by: jjg
2010-09-07 17:31:54 +01:00
Jonathan Gibbons
c09fe5cafb
6930507: Symbols for anonymous and local classes made too late for use by java tree API
...
Reviewed-by: mcimadamore
2010-09-06 12:55:09 -07:00
Athijegannathan Sundararajan
977ad1ae6a
6956462: AssertionError exception thrown in the Compiler Tree API in JDK 7
...
Reviewed-by: jjg
2010-09-03 12:36:43 +05:30
Athijegannathan Sundararajan
60cf6eb1de
6458823: Messager messages on TypeParamterElements to not include position information
...
Reviewed-by: jjg
2010-09-03 11:25:43 +05:30
Jonathan Gibbons
753b8d0fea
6921495: spurious semicolons in class def cause empty NOPOS blocks
...
Reviewed-by: mcimadamore
2010-09-02 18:26:21 -07:00
Athijegannathan Sundararajan
183a7b7797
6458749: TypeParameterElement.getEnclosedElements throws NPE within javac
...
Reviewed-by: jjg
2010-09-02 23:10:05 +05:30
John R Rose
ca3dbff3f8
6979683: inconsistent interaction of reference cast with box/unbox conversions leaves out a useful case
...
Allow casts which narrow and then unbox.
Reviewed-by: mcimadamore
2010-09-01 03:19:16 -07:00
Jonathan Gibbons
0930f81131
6403465: javac should defer diagnostics until it can be determined they are persistent
...
Reviewed-by: mcimadamore, darcy
2010-08-30 18:03:35 -07:00
Jonathan Gibbons
e96eb944c2
6980707: Reduce use of IOException in JavaCompiler
...
Reviewed-by: darcy
2010-08-27 17:59:08 -07:00
Jonathan Gibbons
fba51e328b
6570730: com.sun.source.tree.ModifiersTree.getFlags() should return class type
...
Reviewed-by: mcimadamore
2010-08-27 17:21:17 -07:00
Jonathan Gibbons
99d83d8d85
6980724: test/tools/javac/InterfaceAssert.java sometimes fails
...
Reviewed-by: darcy
2010-08-27 17:14:51 -07:00
Jonathan Gibbons
de9921986c
6604599: ToolProvider should be less compiler-specific
...
Reviewed-by: darcy
2010-08-26 15:17:17 -07:00
Jonathan Gibbons
37fcc133f6
6960424: new option -Xpkginfo for better control of when package-info.class is generated
...
Reviewed-by: mcimadamore
2010-08-25 11:40:25 -07:00
Jonathan Gibbons
19a9622303
6929404: Filer.getResource(SOURCE_PATH, ...) does not work when -sourcepath contains >1 entry
...
Reviewed-by: darcy
2010-08-24 15:09:21 -07:00
Jonathan Gibbons
d6c5c969f0
6935638: -implicit:none prevents compilation with annotation processing
...
Reviewed-by: darcy
2010-08-24 11:31:00 -07:00
Jonathan Gibbons
c72513c86b
6975005: improve JavacProcessingEnvironment.Round abstraction
...
Reviewed-by: darcy
2010-08-23 11:56:53 -07:00
Maurizio Cimadamore
92de62f50b
6978574: return statement in try block with multi-catch causes ClassFormatError
...
Wrong nested loops in Gen.java causes javac to generate bad bytecode
Reviewed-by: jjg
2010-08-23 17:00:07 +01:00
Maurizio Cimadamore
f5dd0bab3f
6932571: Compiling Generics causing Inconvertible types
...
Types.rewriteQuantifiers() does not work well with recursive type-variable bounds
Reviewed-by: jjg
2010-08-23 16:59:30 +01:00
Maurizio Cimadamore
634d001c64
6977800: Regression: invalid resolution of supertype for local class
...
Resolution of superclass/superinterfaces in extends/implements clause skips local classes
Reviewed-by: jjg
2010-08-19 11:54:25 +01:00
Maurizio Cimadamore
d56e09153a
6885255: Improve usability of raw warnings
...
Raw warnings should be disabled in (i) instanceof expressions and (ii) when java.lang.Class is not parameterized
Reviewed-by: jjg
2010-08-19 11:52:58 +01:00
Maurizio Cimadamore
71962ebfb0
6886247: regression: javac crashes with an assertion error in Attr.java
...
Capture conversion does not work on nested types
Reviewed-by: jjg
2010-08-19 11:50:50 +01:00
Jonathan Gibbons
d7787c25cf
6976833: options included twice in Example SimpleCompiler
...
Reviewed-by: darcy
2010-08-16 14:59:21 -07:00
Maurizio Cimadamore
2801325742
6369605: Unconstrained type variables fails to include bounds
...
Unconstrained type-variables with recursive bounds are not inferred properly
Reviewed-by: jjg
2010-08-16 14:58:10 +01:00
Maurizio Cimadamore
91bd86216a
6976649: javac does not enforce required annotation elements in arrays
...
Type annotation should take advantage of recursive annotation checking
Reviewed-by: jjg
2010-08-16 14:56:23 +01:00
Maurizio Cimadamore
23a89dba04
6975231: Regression test for 6881115 is failing with compiler output not matching expected output
...
Missing symbols are collected in an HashSet which doesn't preserve ordering
Reviewed-by: jjg
2010-08-10 14:53:19 +01:00
Maurizio Cimadamore
fa2cb78a09
6857948: Calling a constructor with a doubly bogus argument causes an internal error
...
Problem when constructor resolution returns an erroneous symbol
Reviewed-by: jjg
2010-08-05 09:45:25 +01:00
Maurizio Cimadamore
156e82c164
6881115: javac permits nested anno w/o mandatory attrs => IncompleteAnnotationException
...
Default annotation value is not attributed
Reviewed-by: jjg, darcy
2010-08-05 09:44:54 +01:00
Joe Darcy
74210780a0
6971877: Project Coin: improve semantics of suppressed exceptions in try-with-resources
...
Reviewed-by: jjb
2010-08-02 13:35:39 -07:00
Jonathan Gibbons
eff5854b96
6966604: JavacFiler not correctly notified of lastRound
...
Reviewed-by: darcy
2010-07-29 19:30:35 -07:00
Jonathan Gibbons
75b1007388
6340549: javax.tools.JavaCompilerTool.getStandardFileManager().list() includes directories
...
Reviewed-by: darcy
2010-07-29 19:27:11 -07:00
Jonathan Gibbons
30c006f23f
6972556: warning for using a file name instead of a binary name for Filer.createSourceFile
...
Reviewed-by: darcy
2010-07-29 18:06:34 -07:00
Maurizio Cimadamore
a38fe743aa
6970833: Try-with-resource implementation throws an NPE during Flow analysis
...
Updated logic not to rely upon Symbol.implementation (which check in superinterfaces)
Reviewed-by: jjg
2010-07-29 15:57:43 +01:00
Maurizio Cimadamore
d7444b88be
6972747: CheckExamples fail when assertions are enabled
...
The test calls the wrong version of JavacMessage constructor
Reviewed-by: jjg
2010-07-29 15:57:18 +01:00
Maurizio Cimadamore
541f7a7a41
6938454: Unable to determine generic type in program that compiles under Java 6
...
A redundant dubtyping check causes spurious inference failure
Reviewed-by: jjg
2010-07-29 15:56:25 +01:00
Jonathan Gibbons
bcbe3b2577
6403456: -Werror should work with annotation processing
...
Reviewed-by: darcy
2010-07-27 11:52:11 -07:00
Jan Lahoda
157108fe22
6972327: JCTree.pos incorrect for annotations without modifiers and package
...
Reviewed-by: mcimadamore
2010-07-27 11:32:03 -07:00
Jonathan Gibbons
1c75e97108
6957438: improve code for generating warning messages containing option names
...
Reviewed-by: mcimadamore
2010-07-26 14:25:56 -07:00
Jonathan Gibbons
ccd014ed3f
6971882: Remove -XDstdout from javac test
...
Reviewed-by: darcy
2010-07-26 14:18:45 -07:00
Jonathan Gibbons
7eb8c115ec
6968063: provide examples of code that generate diagnostics
...
Reviewed-by: mcimadamore
2010-07-22 11:02:54 -07:00
Tom Ball
985efdc475
6911256: Project Coin: Support Automatic Resource Management (ARM) blocks in the compiler
...
6964740: Project Coin: More tests for ARM compiler changes
6965277: Project Coin: Correctness issues in ARM implementation
6967065: add -Xlint warning category for Automatic Resource Management (ARM)
Reviewed-by: jjb, darcy, mcimadamore, jjg, briangoetz
2010-07-16 19:35:24 -07:00
Tomas Zezula
9c273720d6
6964669: javac reports error on miranda methods
...
Synthetic name clash check should not apply to miranda methods
Reviewed-by: jjg
2010-07-15 16:31:56 +01:00
Mahmood Ali
aa93fd7701
6967002: JDK7 b99 javac compilation error (java.lang.AssertionError)
...
Bug in JavacParser related to parsing of type annotations in varargs position
Reviewed-by: jjg
2010-07-15 16:31:02 +01:00
Jonathan Gibbons
5db54afdea
6968434: test CheckResourceKeys fails on control builds
...
Reviewed-by: darcy
2010-07-13 19:17:55 -07:00
Jonathan Gibbons
29ceaebc37
6968497: localized text appears in raw diagnostic
...
Reviewed-by: darcy
2010-07-12 16:37:46 -07:00
Jonathan Gibbons
e438672595
6964768: need test program to validate javac resource bundles
...
Reviewed-by: darcy
2010-06-30 18:06:29 -07:00
Lana Steuck
6bc7c5dcb7
Merge
2010-06-29 12:06:46 -07:00
Jonathan Gibbons
17e9572501
6917288: Unnamed nested class is not generated
...
Reviewed-by: mcimadamore
2010-06-24 10:34:53 -07:00
John R Rose
3141814177
Merge
2010-06-18 15:12:04 -07:00
Joshua Maurice
bb97fb0834
6956638: JavacTask.generate does not generate all required files
...
Reviewed-by: darcy
2010-06-16 16:23:27 -07:00
Jonathan Gibbons
0dd9ef9b43
6944312: Potential rebranding issues in openjdk/langtools repository sources
...
Reviewed-by: darcy
2010-06-10 16:08:01 -07:00
Maurizio Cimadamore
875dc24cfc
6945418: Project Coin: Simplified Varargs Method Invocation
...
Add new mandatory warning for unsafe vararg method declaration. Warning can be suppressed as usual (@SuppressWarnings("varargs")/-Xlint:-varargs)
Reviewed-by: jjg, darcy
2010-06-10 09:29:23 +01:00
Joe Darcy
da823fbf44
6519115: MirroredTypeException thrown but should be MirroredTypesException
...
Reviewed-by: jjg
2010-06-03 19:56:12 -07:00
Joe Darcy
fa91c4b435
6933147: Provided new utility visitors supporting SourceVersion.RELEASE_7
...
Reviewed-by: jjg
2010-06-02 19:08:47 -07:00
Lana Steuck
2592bab72c
Merge
2010-05-28 12:41:48 -07:00
Kelly O'Hair
bd4f4be9d7
6943119: Rebrand source copyright notices
...
Reviewed-by: darcy
2010-05-25 15:54:51 -07:00
Maurizio Cimadamore
836fb6fe52
6951833: latest diamond implementation generates spurious raw type warnings
...
Raw warning checks should be disabled in the presence of a diamond AST node
Reviewed-by: jjg
2010-05-19 16:43:30 +01:00
Maurizio Cimadamore
56c4bf22d4
6948381: javac Null Pointer Exception in Types.makeCompoundType
...
Race condition between symbol completion and attribution of import statements causes NPE when creating intersection type
Reviewed-by: jjg
2010-05-19 16:43:06 +01:00
Maurizio Cimadamore
cd66a7b462
6946618: sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms
...
Bad cast to ClassType in the new diamond implementation fails if the target type of the instance creation expression is a type-variable
Reviewed-by: jjg
2010-05-19 16:42:37 +01:00
Maurizio Cimadamore
1bc9b6324e
6880344: Recursive type parameters do not compile
...
Issue in type-variable substitution causes valid code to be rejected
Reviewed-by: jjg
2010-05-19 16:41:57 +01:00
Maurizio Cimadamore
de2b567108
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
...
Reviewed-by: jjg, darcy
2010-05-03 17:12:59 -07:00
John R Rose
a56ce23775
6939134: JSR 292 adjustments to method handle invocation
...
Split MethodHandle.invoke into invokeExact and invokeGeneric
Reviewed-by: twisti
2010-05-01 15:05:39 -07:00
Maurizio Cimadamore
dea5e42c57
6730476: invalid "unchecked generic array" warning
...
Reifiable-ness of varargs element type should be checked after JLS3 15.12.2.8
Reviewed-by: jjg
2010-04-21 12:24:56 +01:00
Maurizio Cimadamore
d3fa7f79ad
6939620: Switch to 'complex' diamond inference scheme
...
Implement new inference scheme for diamond operator that takes into account type of actual arguments supplied to constructor
Reviewed-by: jjg, darcy
2010-04-14 12:31:55 +01:00
Maurizio Cimadamore
965595d38b
6939618: Revert 'simple' diamond implementation
...
Backout changeset for 6840638
Reviewed-by: jjg
2010-04-14 12:23:29 +01:00
Jonathan Gibbons
3665722955
6942649: add hidden option to identify location and version of javac classes
...
Reviewed-by: darcy
2010-04-09 15:39:39 -07:00
Joe Darcy
04194bfc9a
6937417: javac -Xprint returns IndexOutOfBoundsException
...
Reviewed-by: jjg
2010-03-24 17:02:35 -07:00
Jonathan Gibbons
2ed0d63583
6933914: fix missing newlines
...
Reviewed-by: ohair
2010-03-10 16:23:18 -08:00
Jonathan Gibbons
3c60c0e8ef
6930108: IllegalArgumentException in AbstractDiagnosticFormatter for tools/javac/api/TestJavacTaskScanner.jav
...
Reviewed-by: darcy
2010-03-05 16:12:33 -08:00
Jonathan Gibbons
953e026858
6931126: jtreg tests not Windows friendly
...
Reviewed-by: darcy
2010-03-03 19:34:34 -08:00
Jonathan Gibbons
a7dbb87f0e
6931927: position issues with synthesized anonymous class
...
Reviewed-by: darcy
2010-03-03 17:22:52 -08:00
Joe Darcy
077b9d9f1b
6449781: TypeElement.getQualifiedName for anonymous classes returns null instead of an empty name
...
Reviewed-by: jjg
2010-03-03 16:05:34 -08:00
Jonathan Gibbons
87efbd8787
6931127: strange test class files
...
Reviewed-by: darcy
2010-03-02 16:43:29 -08:00
Jonathan Gibbons
97162a48b1
6881645: Unchecked method call on a method declared inside anonymous inner causes javac to crash
...
Reviewed-by: mcimadamore
2010-02-26 08:42:22 -08:00
Jonathan Gibbons
0cc023734d
4880220: Add a warning when accessing a static method via an reference
...
Reviewed-by: darcy
2010-02-25 09:42:35 -08:00
Jonathan Gibbons
f37b9d8245
6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
...
Reviewed-by: darcy
2010-02-23 18:43:02 -08:00
Jonathan Gibbons
19147ccb61
6927797: langtools/test/tools/javac/EarlyAssert.java fails when run with assertions enabled (-ea)
...
Reviewed-by: darcy
2010-02-18 15:41:36 -08:00
Joe Darcy
779ba4bd83
6926699: Annotation processing regression tests should typically return SourceVersion.latest
...
Reviewed-by: jjg
2010-02-15 20:06:11 -08:00
Joe Darcy
1fb4cb4242
6634138: Source generated in last round not compiled
...
Reviewed-by: jjg
2010-02-15 18:20:57 -08:00
Jonathan Gibbons
f9cbc20c10
6926555: 6921979 breaks TreePosTest
...
Reviewed-by: darcy
2010-02-15 16:09:50 -08:00
Jonathan Gibbons
c9c72ab9da
6923080: TreeScanner.visitNewClass should scan tree.typeargs
...
Reviewed-by: darcy
2010-02-04 10:14:28 -08:00
Jonathan Gibbons
9dff5300ae
6921979: add test program to verify annotations are attached to nodes as expected
...
Reviewed-by: darcy
2010-02-03 16:58:57 -08:00
Jonathan Gibbons
3485352c43
6922429: extend tree position test waiver
...
Reviewed-by: darcy
2010-02-03 11:28:21 -08:00
Jonathan Gibbons
0b2d026575
6499119
: Created package-info class file modeled improperly
...
6920317: package-info.java file has to be specified on the javac cmdline, else it will not be avail
Reviewed-by: darcy
2010-01-29 16:54:52 -08:00
Jonathan Gibbons
305d4bc5fc
6919889: assorted position errors in compiler syntax trees
...
Reviewed-by: darcy
2010-01-29 16:06:51 -08:00
Mahmood Ali
7235cabd9f
6917130: should test that annotations that have been optimized away are not emitted to classfile
...
Co-authored-by: Michael Ernst <mernst@cs.washington.edu>
Reviewed-by: jjg, darcy
2010-01-26 11:23:54 -08:00
Jonathan Gibbons
1433e8c817
6919944: incorrect position given for duplicate annotation value error
...
Reviewed-by: darcy
2010-01-26 11:15:49 -08:00
Jonathan Gibbons
5d1e287266
6472751: SourcePositions.getStartPos returns incorrect value for enum constants
...
6567414: javac compiler reports no source file or line on enum constant declaration error
Reviewed-by: darcy
2010-01-13 17:39:44 -08:00
Jonathan Gibbons
2279a1af12
6915497: test test/tools/javac/nio/compileTest/CompileTest.java fails under Hudson
...
Reviewed-by: darcy
2010-01-11 14:17:01 -08:00
Jonathan Gibbons
8d42657600
6915476: java.util.regex.PatternSyntaxException in com.sun.tools.javac.nio.PathFileObject
...
Reviewed-by: darcy
2010-01-11 14:12:10 -08:00
Jonathan Gibbons
4447330ab3
6326754: Compiler will fail to handle -Xmaxerrs with -ve numbers
...
Reviewed-by: ksrini
2010-01-11 14:05:21 -08:00
Jonathan Gibbons
fb26d8497e
6665791: com.sun.source.tree.MethodTree.toString() does not output default values
...
Reviewed-by: darcy
2010-01-08 11:28:49 -08:00
Jonathan Gibbons
b796b9a5d2
6855236: Compiler Tree API TreePath class generates NullPointerException from Iterator
...
Reviewed-by: darcy
2010-01-06 13:16:48 -08:00
Joe Darcy
791e5e16c4
6911854: Update TestElementsAnnotatedWith.java to use @compile/proc
...
Reviewed-by: jjg
2009-12-18 11:15:23 -08:00
Jonathan Gibbons
75f1feee86
6906175: bridge JSR199 and JSR 203 APIs
...
Reviewed-by: darcy, alanb
2009-12-11 14:26:27 -08:00
Jonathan Gibbons
a502ed59ba
6902720: javac pretty printer does not handle enums correctly
...
Reviewed-by: mcimadamore
2009-11-19 11:49:27 -08:00
Joe Darcy
54d7808702
6827009: Project Coin: Strings in Switch
...
Reviewed-by: jjg, mcimadamore
2009-11-02 21:36:59 -08:00
Jonathan Gibbons
613eae59d0
6889255: javac MethodSymbol throws NPE if ClassReader does not read parameter names correctly
...
Reviewed-by: darcy
2009-10-19 13:38:09 -07:00
Jonathan Gibbons
44767bbfbe
6838467: JSR199 FileObjects don't obey general contract of equals
...
Reviewed-by: darcy
2009-10-14 15:41:28 -07:00
Jonathan Gibbons
51a7e38600
6891079: Compiler allows invalid binary literals 0b and oBL
...
Reviewed-by: darcy
2009-10-13 15:26:30 -07:00
Tim Bell
2fa89790cc
Merge
2009-09-25 22:04:43 -07:00
Tim Bell
81aa7df4c9
Merge
2009-09-25 14:24:14 -07:00
Joe Darcy
06d5d6e0ea
6337964: should ignore last comma in annotation array
...
Reviewed-by: jjg
2009-09-24 16:00:03 -07:00
Jonathan Gibbons
6e3d970196
6410637: Make decision on deprecated methods in DefaultFileManager and BaseFileObject
...
6747645: ZipFileObject.getName is incorrectly deprecated
6885123: JavaFileObject getName issues
Reviewed-by: mcimadamore
2009-09-23 18:48:13 -07:00
Joe Darcy
2f016d3e82
6517779: javax.lang.model.util.Elements.getConstantExpression() doesn't throw any exception
...
6517907: javax.lang.model.util.Elements.getConstantExpression() with negative byte value fails
Fix various problems with Elements.getConstantExpression()
Reviewed-by: jjg
2009-09-23 18:29:41 -07:00
Xiomara Jayasena
dbe66b7524
6884624: Update copyright year
...
Update copyright for files that have been modified in 2009 through Septermber
Reviewed-by: tbell, ohair
2009-09-22 14:06:29 -07:00
Jonathan Gibbons
e4f3f066c0
6860965: Project Coin: binary literals
...
6860973: Project Coin: Underscores in literals
[Portions contributed by Bruce Chapman]
Reviewed-by: darcy
2009-09-15 18:36:21 -07:00
Jonathan Gibbons
8a6e77c436
6882235: invalid exponent causes silent javac crash
...
Reviewed-by: darcy
2009-09-15 12:20:55 -07:00
Jonathan Gibbons
b2eaa8339f
6419701: DefaultFileManager clean up: URI.create
...
6483788: DefaultFileManager.ZipFileObject.toUri() fails to escape space characters
6501502: JSR 199: FileObject.toUri should return file:///c:/ or file:/c:/ not file://c:/
6877206: JavaFileObject.toUri returns bogus URI (win)
6877223: tests @ignored because of issues with File.toURI on Windows
Reviewed-by: mcimadamore, alanb
2009-09-08 11:12:13 -07:00
Maurizio Cimadamore
1de40db76d
6650759: Inference of formal type parameter (unused in formal parameters) is not performed
...
Propagate inference constraints from 15.12.2.7 to 15.12.2.8
Reviewed-by: jjg
2009-09-01 14:53:39 +01:00
Jonathan Gibbons
a4d40c3100
6877759: test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java leaves open file
...
Reviewed-by: darcy
2009-08-31 19:43:06 -07:00
Jonathan Gibbons
729ed5d746
6877751: test/tools/javac/6627362/T6627362.java fails
...
Reviewed-by: darcy
2009-08-31 18:25:00 -07:00
Jonathan Gibbons
9df373712c
6877744: delete extraneous file
...
Reviewed-by: darcy
2009-08-31 17:16:52 -07:00
Jonathan Gibbons
ec2a9994f5
6877229: more javac tests fail on Windows
...
Reviewed-by: darcy
2009-08-31 12:36:26 -07:00
Jonathan Gibbons
45e9a3c1e9
6877188: some javac shell tests do not work on Windows
...
Reviewed-by: darcy
2009-08-28 14:48:49 -07:00
Jonathan Gibbons
cf9084dc86
6843707: bad tests generate files in the test/ directory
...
6876699: generated files in repository
Reviewed-by: darcy
2009-08-27 15:12:36 -07:00
Jonathan Gibbons
af2f2e8d36
6875336: some tests should use /nodynamiccopyright/
...
Reviewed-by: darcy
2009-08-27 11:08:27 -07:00
Maurizio Cimadamore
e5ce4a752b
6840638: Project Coin: Improved Type Inference for Generic Instance Creation (aka 'diamond')
...
Diamond operator implementation (simple approach)
Reviewed-by: jjg
2009-08-27 13:40:48 +01:00
Jonathan Gibbons
b91de4eb6a
6869216: testgetallmembers should consistently use correct filemanager
...
Reviewed-by: darcy
2009-08-24 14:38:42 -07:00
Jonathan Gibbons
0ec5040633
6873845: refine access to symbol file
...
Reviewed-by: darcy
2009-08-21 14:58:21 -07:00
Jonathan Gibbons
bde1a2faf8
6873849: suppress notes generated by javac
...
Reviewed-by: darcy
2009-08-21 11:25:45 -07:00
Jonathan Gibbons
b81f0f8916
6558476: com/sun/tools/javac/Main.compile don't release file handles on return
...
Reviewed-by: darcy
2009-08-12 10:34:13 -07:00
Maurizio Cimadamore
b2f97fc341
6199153: Generic throws and overriding
...
Javac incorrectly rejects an uchecked overriding
Reviewed-by: jjg
2009-08-11 01:14:31 +01:00
Maurizio Cimadamore
d8292cad05
6569404: Cannot instantiate an inner class of a type variable
...
Javac is too strict in rejecting member selction from a type-var
Reviewed-by: jjg
2009-08-11 01:14:06 +01:00
Maurizio Cimadamore
b097f12a5d
6869075: regression: javac crashes when compiling compound string assignment with generics
...
Javac should not add syntehtic cast to the LHS of an assignment expression
Reviewed-by: jjg
2009-08-11 01:13:42 +01:00
Maurizio Cimadamore
a11cd67b7c
6521805: Regression: JDK5/JDK6 javac allows write access to outer class reference
...
Javac should warn/complain about identifiers with the same name as synthetic symbol
Reviewed-by: jjg
2009-08-11 01:13:14 +01:00
Maurizio Cimadamore
b466a2fcc9
6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
...
Resolved an internal crash with constructor resolution
Reviewed-by: jjg
2009-08-11 01:12:40 +01:00
Maurizio Cimadamore
578138abeb
6390045: Unexpected error "cannot access java.lang.Void" with '-target cldc1.0' with -source >=1.5
...
Javac needs to synthetize a fake java.lang.Void symbol if one is not given on the classpath
Reviewed-by: jjg
2009-08-11 01:12:13 +01:00
Maurizio Cimadamore
ac4b216060
6806876: ClassCastException occurs in assignment expressions without any heap pollutions
...
Intersection types should be considered as non-reifiable by javac
Reviewed-by: jjg
2009-08-11 01:11:37 +01:00
Jonathan Gibbons
c28b62e1d5
6868548: remove spurious ';' from after constant pool entries
...
Reviewed-by: ksrini
2009-08-08 17:50:57 -07:00
Jonathan Gibbons
ea9763ee24
6868553: 6867671 breaks some tests
...
Reviewed-by: mcimadamore
2009-08-05 07:43:50 -07:00
Tim Bell
2437247a8d
Merge
2009-07-31 17:20:06 -07:00
Tim Bell
7d5c536756
Merge
2009-07-30 23:41:19 -07:00
Mahmood Ali
638db1aabb
6861837: JCK compilation failures
...
Type-annotations processing is accessing type info before they are available in MemberEnter
Reviewed-by: jjg
2009-07-30 10:30:34 +01:00
Maurizio Cimadamore
fe1aaa8154
6864382: NPE in the rich formatter when processing an unattributed type-variable
...
Unattributed type variable should not be accessed by the rich formatter when emitting where clauses
Reviewed-by: jjg
2009-07-30 10:30:24 +01:00
Maurizio Cimadamore
25497fcea7
6862608: rich diagnostic sometimes contain wrong type variable numbering
...
The rich formatter generates worng numbers for type-variables in where clauses
Reviewed-by: jjg
2009-07-30 10:30:10 +01:00
Xiomara Jayasena
d0493af09e
6862919: Update copyright year
...
Update copyright for files that have been modified in 2009, up to 07/09
Reviewed-by: tbell, ohair
2009-07-28 12:12:59 -07:00
Maurizio Cimadamore
ae2586d2c3
6860795: NullPointerException when compiling a negative java source
...
Rich formatter shouldn't propagate visits on method symbols that have a null type
Reviewed-by: jjg
2009-07-15 17:01:47 +01:00
Maurizio Cimadamore
dd76763423
6846972: cannot access member of raw type when erasure change overriding into overloading
...
Fix of 6400189 caused a nasty problem in method resolution
Reviewed-by: jjg
2009-07-15 10:25:01 +01:00
Mahmood Ali
48800dcb6c
6855563: test broken after merge with latest parser
...
Reviewed-by: jjg
2009-06-27 12:04:43 -07:00
Michael Ernst
e03ee9130a
6855544: add missing files
...
Co-authored-by: Mahmood Ali <mali@csail.mit.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Reviewed-by: jjg, mcimadamore, darcy
2009-06-26 19:12:41 -07:00
Michael Ernst
5a1465b9de
6843077: JSR 308: Annotations on types
...
Co-authored-by: Mahmood Ali <mali@csail.mit.edu>
Co-authored-by: Matt Papi <mpapi@csail.mit.edu>
Reviewed-by: jjg, mcimadamore, darcy
2009-06-26 18:51:39 -07:00
Joe Darcy
2b12b62ad4
6593082: MirroredTypeException constructor does not throw NPE when type is null
...
Reviewed-by: jjg
2009-06-26 12:22:40 -07:00
Maurizio Cimadamore
1fc0b5c367
6852595: Accessing scope using JSR199 API on erroneous tree causes Illegal Argument Exception
...
Fixed problem with empty DiagnosticSource objects causing IAE in the JCDiagnostic constructor
Reviewed-by: jjg
2009-06-24 10:50:54 +01:00
Maurizio Cimadamore
3b51e6ae0d
6638712: Inference with wildcard types causes selection of inapplicable method
...
Added global sanity check in order to make sure that return type inference does not violate bounds constraints
Reviewed-by: jjg
2009-06-16 10:46:37 +01:00
Maurizio Cimadamore
fda3d758e3
6835428: regression: return-type inference rejects valid code
...
Redundant subtyping test during type-inference ends up in rejecting legal code
Reviewed-by: jjg
2009-06-16 10:46:16 +01:00
Maurizio Cimadamore
5f7f3d4e38
6835430: javac does not generate signature attributes for classes extending parameterized inner classes
...
ClassWriter does not consider outer params of an inner class when emitting signature attributes
Reviewed-by: jjg
2009-06-16 10:45:42 +01:00
Maurizio Cimadamore
518efd59c1
6845686: basic and raw formatters do not display captured var id properly when javac runs in -XDoldDiags mode
...
Basic and raw formatters do not override Printer methods properly
Reviewed-by: jjg
2009-06-16 10:45:11 +01:00
Jonathan Gibbons
6fb18b568c
6802102: unignore @ignored tests where possible
...
Reviewed-by: mcimadamore
2009-05-28 09:49:56 -07:00
Joe Darcy
05ea258bbb
6843761: Update langtools tests to remove unncessary -source and -target options
...
Reviewed-by: jjg
2009-05-27 22:34:43 -07:00
Maurizio Cimadamore
a74aa28243
6722234: javac diagnostics need better integration with the type-system
...
Added RichDiagnosticFormatter which provides better formatting capabilities for javac types/symbols
Reviewed-by: jjg
2009-05-21 10:56:36 +01:00
Jonathan Gibbons
db4ff5c63b
6843648: tools/javac/versions/check.sh is broken
...
Reviewed-by: darcy
2009-05-20 19:10:06 -07:00
John R Rose
5ba10ad9ad
6829189: Java programming with JSR 292 needs language support
...
Language changes documented in http://wikis.sun.com/display/mlvm/ProjectCoinProposal
Reviewed-by: jjg, darcy, mcimadamore
2009-05-04 21:04:04 -07:00
Jonathan Gibbons
851190bb2e
6813059: replace use of JavaCompiler.errorCount with shouldContinue
...
Reviewed-by: mcimadamore
2009-03-31 11:16:15 -07:00
Maurizio Cimadamore
584c02dfa8
6400189: raw types and inference
...
Fixed resolution problem with raw overriding (CCC)
Reviewed-by: jjg
2009-03-25 10:29:28 +00:00
Maurizio Cimadamore
d0892edd69
6816548: Uninitialized register when performing casting + auto(un)boxing
...
Constant value of final variable is lost during lowering
Reviewed-by: jjg
2009-03-25 10:28:52 +00:00
Maurizio Cimadamore
8321605121
6182950: methods clash algorithm should not depend on return type
...
Fixed code that checks for duplicate method declarations
Reviewed-by: jjg
2009-03-25 10:28:36 +00:00
Tim Bell
e005d5df51
Merge
2009-03-09 23:53:41 -07:00
Xiomara Jayasena
56fcf6c052
6814575: Update copyright year
...
Update copyright for files that have been modified in 2009, up to 03/09
Reviewed-by: katleman, tbell, ohair
2009-03-09 13:29:06 -07:00
Maurizio Cimadamore
a46fd793cc
6799605: Basic/Raw formatters should use type/symbol printer instead of toString()
...
Create new combo type/symbol visitor printer used by all diagnostic formatters
Reviewed-by: jjg
2009-03-05 17:25:37 +00:00
Maurizio Cimadamore
5ff31e060f
6804733: javac generates spourious diagnostics for ill-formed type-variable bounds
...
Fixed algorithm for checking cycles in typevar declarations
Reviewed-by: jjg
2009-03-05 17:24:40 +00:00
Maurizio Cimadamore
7b461338a0
6467183: javac fails to raise unchecked warning on cast of parameterized generic subclass
...
Cleanup code for generating unchecked cast warnings
Reviewed-by: jjg
2009-03-05 17:24:08 +00:00
Joe Darcy
178049faf3
6498938: Faulty comparison of TypeMirror objects in getElementsAnnotatedWith implementation
...
Reviewed-by: jjg
2009-02-24 17:48:53 -08:00
Maurizio Cimadamore
198f2427b4
6769027: Source line should be displayed immediately after the first diagnostic line
...
Added support for customizing diagnostic output via API/command line flags
Reviewed-by: jjg
2009-02-13 11:57:33 +00:00
Joe Darcy
553a2dfa66
6794071: Provide exception superclass for UnknownFooExceptions
...
Reviewed-by: jjg
2009-02-06 12:49:48 -08:00