427 Commits

Author SHA1 Message Date
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