hg: type-annotations/type-annotations/langtools: 5 new changesets

wdietl at gmail.com wdietl at gmail.com
Fri Sep 7 01:09:30 PDT 2012


Changeset: ff697d2ab376
Author:    wmdietl
Date:      2012-09-07 00:10 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/ff697d2ab376

Examples for four new diagnostic messages.

+ test/tools/javac/diags/examples/CantAnnotateStaticClass.java
+ test/tools/javac/diags/examples/IncorrectReceiverType.java
+ test/tools/javac/diags/examples/NoAnnotationsOnDotClass.java
+ test/tools/javac/diags/examples/ThisAsIdentifier.java

Changeset: e52f11baebfb
Author:    wmdietl
Date:      2012-09-07 00:12 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/e52f11baebfb

Correctly set the tree type for JCAnnotatedType enclosing a JCTypeApply in a "new" expression.

! src/share/classes/com/sun/tools/javac/comp/Attr.java

Changeset: 941360c007d3
Author:    wmdietl
Date:      2012-09-07 00:19 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/941360c007d3

Mostly layout adaptations.
Also set the end position when moving annotations to most inner location.

! src/share/classes/com/sun/tools/javac/parser/JavacParser.java

Changeset: e75924abf471
Author:    wmdietl
Date:      2012-09-07 00:21 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/e75924abf471

The test case already ignores position checks for arrays. Do the same for annotated arrays.

! test/tools/javac/tree/TreePosTest.java

Changeset: 9ffbc40d48a6
Author:    wmdietl
Date:      2012-09-07 00:50 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/9ffbc40d48a6

Fix tree positions, which gives further improvement to TreePosTest result.

! src/share/classes/com/sun/tools/javac/parser/JavacParser.java



More information about the type-annotations-dev mailing list