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

wdietl at gmail.com wdietl at gmail.com
Mon Dec 31 01:30:04 PST 2012


Changeset: 9ab31827865c
Author:    wmdietl
Date:      2012-12-31 01:06 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/9ab31827865c

Move type annotations out of Type into a separate AnnotatedType subclass.

! src/share/classes/com/sun/tools/javac/code/Type.java

Changeset: da00429f0d92
Author:    wmdietl
Date:      2012-12-31 01:07 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/da00429f0d92

Correct output of annotated varargs and support AnnotatedType.

! src/share/classes/com/sun/tools/javac/code/Printer.java

Changeset: dc343861534d
Author:    wmdietl
Date:      2012-12-31 01:08 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/dc343861534d

Major changes to support AnnotatedType and create copies of Types instead of directly modifying them.

! src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java

Changeset: 9e0285b1e2ad
Author:    wmdietl
Date:      2012-12-31 01:09 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/9e0285b1e2ad

Skip over AnnotatedTypes in any computation.

! src/share/classes/com/sun/tools/javac/code/Types.java

Changeset: 187848128e70
Author:    wmdietl
Date:      2012-12-31 01:10 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/187848128e70

Support AnnotatedTypes and move check for enclosing classes to other type annotation validation.

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

Changeset: 76713bb83999
Author:    wmdietl
Date:      2012-12-31 01:10 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/76713bb83999

Support annotated varargs.

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

Changeset: 94c1fda51952
Author:    wmdietl
Date:      2012-12-31 01:11 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/94c1fda51952

Ignore AnnotatedTypes when computing signatures.

! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java

Changeset: 3e5aebc411f0
Author:    wmdietl
Date:      2012-12-31 01:12 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/3e5aebc411f0

This class and the corresponding interface must be adapted. For now, provide a dummy implementation.

! src/share/classes/com/sun/tools/javac/model/JavacTypes.java

Changeset: 957b9f05dc6d
Author:    wmdietl
Date:      2012-12-31 01:14 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/957b9f05dc6d

Top-level annotations in an object creation must also be inserted into the most-inner/left-most type.

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

Changeset: ceac49a14e7e
Author:    wmdietl
Date:      2012-12-31 01:15 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/ceac49a14e7e

Additional error key (should be reviewed and maybe combined with cant.annotate.static.class).

! src/share/classes/com/sun/tools/javac/resources/compiler.properties

Changeset: 2ad9cf69665e
Author:    wmdietl
Date:      2012-12-31 01:15 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/2ad9cf69665e

Fix output of annotated varargs.

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

Changeset: 66128366bcaf
Author:    wmdietl
Date:      2012-12-31 01:16 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/66128366bcaf

Whitespace fix only.

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

Changeset: f6c424edbd87
Author:    wmdietl
Date:      2012-12-31 01:18 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/f6c424edbd87

Adapt javadoc to introduction of Type.AnnotatedType.

! src/share/classes/com/sun/tools/javadoc/AnnotatedTypeImpl.java
! src/share/classes/com/sun/tools/javadoc/ExecutableMemberDocImpl.java
! src/share/classes/com/sun/tools/javadoc/TypeMaker.java
! src/share/classes/com/sun/tools/javadoc/TypeVariableImpl.java

Changeset: 424b7015ffcf
Author:    wmdietl
Date:      2012-12-31 01:20 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/424b7015ffcf

Introduce new AnnotatedType type model.

+ src/share/classes/javax/lang/model/type/AnnotatedType.java
! src/share/classes/javax/lang/model/type/TypeKind.java
! src/share/classes/javax/lang/model/type/TypeVisitor.java
! src/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java

Changeset: f88fb06c0514
Author:    wmdietl
Date:      2012-12-31 01:20 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/f88fb06c0514

Remove case that was removed from the underlying example: annotations on .class expressions.

! test/com/sun/javadoc/typeAnnotations/smoke/TestSmoke.java

Changeset: a4c73cefd4d1
Author:    wmdietl
Date:      2012-12-31 01:22 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/a4c73cefd4d1

New test case to check that annotations on certain nested types are not allowed. Currently failing.

+ test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.java

Changeset: 80403e2d6e05
Author:    wmdietl
Date:      2012-12-31 01:24 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/80403e2d6e05

New test case to check that annotations on certain nested types are not allowed. Currently failing.

+ test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.out

Changeset: 856a4901e7d4
Author:    wmdietl
Date:      2012-12-31 01:25 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/856a4901e7d4

Expand test case with Object[] case. Currently fails because of some annotated array side-effects.

! test/tools/javac/annotations/typeAnnotations/failures/LintCast.java
! test/tools/javac/annotations/typeAnnotations/failures/LintCast.out

Changeset: 2a6d54ce51ad
Author:    wmdietl
Date:      2012-12-31 01:26 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/2a6d54ce51ad

Adapt test case to rules regarding annotations on nested types.

! test/tools/javac/annotations/typeAnnotations/newlocations/NestedTypes.java

Changeset: e6206ee263ab
Author:    wmdietl
Date:      2012-12-31 01:28 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/e6206ee263ab

Example for cant.annotate.nested.type diagnostic.

+ test/tools/javac/diags/examples/CantAnnotateNestedType.java

Changeset: 690c41cdab55
Author:    bpatel
Date:      2012-12-25 17:23 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/690c41cdab55

8004893: the javadoc/doclet needs to be updated to accommodate lambda changes
Reviewed-by: jjg

! src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties
! src/share/classes/com/sun/tools/doclets/internal/toolkit/ClassWriter.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ClassBuilder.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclet.xml
! src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MethodTypes.java
! test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java
+ test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java
+ test/com/sun/javadoc/testLambdaFeature/pkg/A.java
+ test/com/sun/javadoc/testLambdaFeature/pkg/B.java
! test/com/sun/javadoc/testMethodTypes/TestMethodTypes.java

Changeset: 0c244701188e
Author:    mchung
Date:      2012-12-28 22:25 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/0c244701188e

8003562: Provide a CLI tool to analyze class dependencies
Reviewed-by: jjg, alanb, ulfzibis, erikj

! make/build.properties
! makefiles/BuildLangtools.gmk
! src/share/classes/com/sun/tools/classfile/Dependencies.java
! src/share/classes/com/sun/tools/classfile/Dependency.java
+ src/share/classes/com/sun/tools/jdeps/Archive.java
+ src/share/classes/com/sun/tools/jdeps/ClassFileReader.java
+ src/share/classes/com/sun/tools/jdeps/JdepsTask.java
+ src/share/classes/com/sun/tools/jdeps/Main.java
+ src/share/classes/com/sun/tools/jdeps/PlatformClassPath.java
+ src/share/classes/com/sun/tools/jdeps/resources/jdeps.properties
+ src/share/classes/com/sun/tools/jdeps/resources/jdk.properties
+ src/share/classes/com/sun/tools/jdeps/resources/version.properties-template
! test/Makefile
+ test/tools/jdeps/Basic.java
+ test/tools/jdeps/Test.java
+ test/tools/jdeps/p/Foo.java

Changeset: 31780dd06ec7
Author:    jjg
Date:      2012-12-29 17:33 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/31780dd06ec7

8004727: Add compiler support for parameter reflection
Reviewed-by: jjg
Contributed-by: eric.mccorkle at oracle.com

! src/share/classes/com/sun/tools/classfile/Attribute.java
! src/share/classes/com/sun/tools/classfile/ClassWriter.java
+ src/share/classes/com/sun/tools/classfile/MethodParameters_attribute.java
! src/share/classes/com/sun/tools/javac/code/Symbol.java
! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! src/share/classes/com/sun/tools/javac/main/Option.java
! src/share/classes/com/sun/tools/javac/resources/javac.properties
! src/share/classes/com/sun/tools/javac/util/Names.java
! src/share/classes/com/sun/tools/javap/AttributeWriter.java
+ test/tools/javac/MethodParameters.java
+ test/tools/javap/MethodParameters.java

Changeset: 383bc0fbd759
Author:    jjg
Date:      2012-12-30 06:17 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/383bc0fbd759

8005195: Doclint regression tests fail on windows
Reviewed-by: mcimadamore

! test/tools/doclint/DocLintTester.java

Changeset: 87282b83472c
Author:    wmdietl
Date:      2012-12-31 01:28 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/87282b83472c

Automated merge with http://hg.openjdk.java.net/jdk8/tl/langtools

! make/build.properties
! src/share/classes/com/sun/tools/classfile/Attribute.java
! src/share/classes/com/sun/tools/classfile/ClassWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclet.xml
! src/share/classes/com/sun/tools/javac/code/Symbol.java
! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! src/share/classes/com/sun/tools/javac/resources/javac.properties
! src/share/classes/com/sun/tools/javac/util/Names.java
! src/share/classes/com/sun/tools/javap/AttributeWriter.java
- test/tools/javac/typeAnnotations/newlocations/BasicTest.java
- test/tools/javac/typeAnnotations/newlocations/BasicTest.out



More information about the type-annotations-dev mailing list