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

wdietl at gmail.com wdietl at gmail.com
Fri Sep 7 16:14:26 PDT 2012


Changeset: b84a24fb388f
Author:    wmdietl
Date:      2012-09-07 16:04 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/b84a24fb388f

Further example uses of type annotations, highlighting the order relative to method type variables and in relation to declaration annotations.

! test/tools/javac/typeAnnotations/TypeUseTarget.java

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

Ignore a position mismatch between selects within annotated types: one has the "." as pos, the other the "@", which is a later pos.
Ignore annotations within modifiers: annotations after method type parameter declarations are within the modifiers, but have a later endpos.
Improve error output.

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

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

Adapt expected output to current error message. This bug will be fixed in TL, then break this test again, and at that point we'll put in the final answer.

! test/tools/javac/typeAnnotations/failures/common/receiver/DuplicateTypeAnnotation.out

Changeset: 2a3ac6e54659
Author:    wmdietl
Date:      2012-09-07 16:11 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/2a3ac6e54659

Annotations on nested types should take the startpos from the underlying type or the annotations, depending on whether the annotations are on the right type.

! src/share/classes/com/sun/tools/javac/tree/TreeInfo.java

Changeset: 9965fd63bc0a
Author:    wmdietl
Date:      2012-09-07 16:13 -0700
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/9965fd63bc0a

Fix setting pos and endpos information.
Use hasTag instead of getKind.
Remove dead assignments.

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



More information about the type-annotations-dev mailing list