296 Commits

Author SHA1 Message Date
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
f6a7442983 6958836: javadoc should support -Xmaxerrs and -Xmaxwarns
Reviewed-by: darcy
2010-06-11 17:24:23 -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
Lana Steuck
ff7f1b9999 Merge 2010-06-07 17:09:52 -07: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
3a941f57d3 6956202: Fix a few missed rebranding issues, please contact lines etc
Reviewed-by: darcy, jjg, weijun
2010-05-26 20:22:54 -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