hg: type-annotations/type-annotations/langtools: 13 new changesets
wdietl at gmail.com
wdietl at gmail.com
Wed Jan 16 21:29:10 PST 2013
Changeset: 91c6b833d672
Author: wmdietl
Date: 2013-01-16 20:50 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/91c6b833d672
Add the missing hashCode methods that should come with equals methods.
! src/share/classes/com/sun/tools/classfile/TypeAnnotation.java
! src/share/classes/com/sun/tools/javac/code/TypeAnnotationPosition.java
Changeset: 5ca628f4b6de
Author: wmdietl
Date: 2013-01-16 20:51 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/5ca628f4b6de
Consistently use chars instead of length one string literals.
! src/share/classes/com/sun/tools/javac/code/Printer.java
Changeset: d46c53cf20a5
Author: wmdietl
Date: 2013-01-16 20:53 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/d46c53cf20a5
Correctly output annotated varargs.
! src/share/classes/com/sun/tools/javac/code/Type.java
Changeset: 38d7fb9413aa
Author: wmdietl
Date: 2013-01-16 20:53 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/38d7fb9413aa
Add an annotation queue to come after repeating annotations.
! src/share/classes/com/sun/tools/javac/comp/Annotate.java
Changeset: fcb9c2f66452
Author: wmdietl
Date: 2013-01-16 20:54 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/fcb9c2f66452
Only create an annotated type parameter if there are annotations.
! src/share/classes/com/sun/tools/javac/comp/Attr.java
Changeset: 0d8543e19b5c
Author: wmdietl
Date: 2013-01-16 20:55 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/0d8543e19b5c
Organize type annotations after MemberEnter.
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
Changeset: d2a2dabc8586
Author: wmdietl
Date: 2013-01-16 20:56 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/d2a2dabc8586
More places to handle annotated types.
! src/share/classes/com/sun/tools/javadoc/AnnotatedTypeImpl.java
! src/share/classes/com/sun/tools/javadoc/TypeMaker.java
Changeset: ff155b1b66fe
Author: wmdietl
Date: 2013-01-16 21:00 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/ff155b1b66fe
Support to only organize type annotations that appear in the signature, to be used in MemberEnter.
Many small bugfixes.
! src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
Changeset: 06a08f30943a
Author: wmdietl
Date: 2013-01-16 21:01 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/06a08f30943a
Formatting fix.
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.java
Changeset: d0fd2711c7e0
Author: wmdietl
Date: 2013-01-16 21:06 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/d0fd2711c7e0
Expand on test case.
This test also illustrates how the AnnotatedType is created earlier for array types and later for other types. This results in inconsistent error messages and should be fixed (or the output adapted).
! test/tools/javac/annotations/typeAnnotations/failures/LintCast.java
! test/tools/javac/annotations/typeAnnotations/failures/LintCast.out
Changeset: 3ba8ed810e90
Author: wmdietl
Date: 2013-01-16 21:13 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/3ba8ed810e90
Use Outer/Inner classes instead of Map/Entry, which should fail because of static nesting.
Add test case for class nested within method.
! test/tools/javac/annotations/typeAnnotations/referenceinfos/Driver.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java
Changeset: 484a1694402b
Author: wmdietl
Date: 2013-01-16 21:13 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/484a1694402b
Add tests for multicatch.
! test/tools/javac/annotations/typeAnnotations/newlocations/ExceptionParameters.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java
Changeset: b97997dddcf4
Author: wmdietl
Date: 2013-01-16 21:21 -0800
URL: http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/b97997dddcf4
Improvements and extension to testing infrastructure
for type annotations.
Provided by Steve Sides, see mailing list discussions and
http://cr.openjdk.java.net/~ssides/8005085/webrev.03/
+ test/tools/javac/annotations/typeAnnotations/classfile/ClassfileTestHelper.java
+ test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest1.java
+ test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java
! test/tools/javac/annotations/typeAnnotations/classfile/DeadCode.java
! test/tools/javac/annotations/typeAnnotations/classfile/NewTypeArguments.java
! test/tools/javac/annotations/typeAnnotations/classfile/TypeCasts.java
! test/tools/javac/annotations/typeAnnotations/classfile/Wildcards.java
More information about the type-annotations-dev
mailing list