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

wdietl at gmail.com wdietl at gmail.com
Sun Feb 17 20:37:30 PST 2013


Changeset: e4c3c5391aaf
Author:    wmdietl
Date:      2013-02-17 19:16 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/e4c3c5391aaf

Ignore AnnotatedType when determining the name of an anonymous class.

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

Changeset: c26f5536d869
Author:    wmdietl
Date:      2013-02-17 19:17 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/c26f5536d869

Always set the annotation attribute. Clarify comment.

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

Changeset: b06816794394
Author:    wmdietl
Date:      2013-02-17 19:22 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/b06816794394

Ensure that declaration annotations can only be used for anonymous class instantiations, not for other instantiations.
Also, a receiver parameter must not use declaration annotations.
Change the error message for a receiver parameter in a static method.
Work around an ordering issue that is a pain.

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

Changeset: 6182a906cba1
Author:    wmdietl
Date:      2013-02-17 19:23 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/6182a906cba1

Ensure annotations in an annotated type tree are validated.

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

Changeset: 5d5488d2ce00
Author:    wmdietl
Date:      2013-02-17 19:25 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/5d5488d2ce00

Prevent entering type annotations twice by visiting trees only on the right symbol.
Clean up the organizeTypeAnnotationsSignatures interface.

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

Changeset: b832dc269136
Author:    wmdietl
Date:      2013-02-17 19:25 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/b832dc269136

No type annotations with an UNKNOWN position should exist.
Correctly format an error for this.

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

Changeset: 53a635e47bda
Author:    wmdietl
Date:      2013-02-17 19:27 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/53a635e47bda

Allow declaration annotations for anonymous class instantiations.

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

Changeset: b690b50ddc8c
Author:    wmdietl
Date:      2013-02-17 20:26 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/b690b50ddc8c

More cleanups to when annotations are validated.

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

Changeset: 5912fbbeb6b9
Author:    wmdietl
Date:      2013-02-17 20:27 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/5912fbbeb6b9

Use a separate error message for using a receiver parameter when none is allowed.

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

Changeset: a1d43face262
Author:    wmdietl
Date:      2013-02-17 20:27 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/a1d43face262

Output declaration annotations on an anonymous class instantiation.

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

Changeset: b503e62ca0e7
Author:    wmdietl
Date:      2013-02-17 20:29 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/b503e62ca0e7

Make annotationType generally usable, handle instantiation of anonymous classes, ensure type annotations are only present once and never have UNKNOWN position.

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

Changeset: 4a815e93138d
Author:    wmdietl
Date:      2013-02-17 20:32 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/4a815e93138d

Expand tests for when declaration annotations are legal and add missing TYPE_USE Targets.

! test/tools/javac/annotations/typeAnnotations/attribution/Scopes.java
! test/tools/javac/annotations/typeAnnotations/failures/StaticMethods.java
! test/tools/javac/annotations/typeAnnotations/failures/StaticMethods.out
+ test/tools/javac/annotations/typeAnnotations/failures/common/arrays/DeclarationAnnotation.java
+ test/tools/javac/annotations/typeAnnotations/failures/common/arrays/DeclarationAnnotation.out
+ test/tools/javac/annotations/typeAnnotations/failures/common/receiver/DeclarationAnnotation.java
+ test/tools/javac/annotations/typeAnnotations/failures/common/receiver/DeclarationAnnotation.out
! test/tools/javac/annotations/typeAnnotations/failures/common/receiver/Nesting.java
! test/tools/javac/annotations/typeAnnotations/failures/common/receiver/StaticThings.out
! test/tools/javac/annotations/typeAnnotations/failures/common/receiver/WrongType.java
! test/tools/javac/annotations/typeAnnotations/failures/common/receiver/WrongType.out
! test/tools/javac/annotations/typeAnnotations/failures/common/rest/MissingAnnotationValue.java

Changeset: dbef4179abd8
Author:    wmdietl
Date:      2013-02-17 20:32 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/dbef4179abd8

Expand tests for when declaration annotations are legal and add missing TYPE_USE Targets.

! test/tools/javac/annotations/typeAnnotations/failures/common/rest/MissingAnnotationValue.out
+ test/tools/javac/annotations/typeAnnotations/failures/common/wildcards/DeclarationAnnotation.java
+ test/tools/javac/annotations/typeAnnotations/failures/common/wildcards/DeclarationAnnotation.out
+ test/tools/javac/annotations/typeAnnotations/newlocations/AnonymousClass.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java
+ test/tools/javac/annotations/typeAnnotations/referenceinfos/Test.java

Changeset: 45651f09a242
Author:    wmdietl
Date:      2013-02-17 20:34 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/45651f09a242

Automated merge with http://hg.openjdk.java.net/type-annotations/type-annotations/langtools

! src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java

Changeset: 63872da94576
Author:    darcy
Date:      2013-02-13 23:05 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/63872da94576

8001457: New tests needed for library-side changes for repeating annotations
Reviewed-by: darcy
Contributed-by: sonali.goel at oracle.com

! test/tools/javac/annotations/repeatingAnnotations/combo/Helper.java
+ test/tools/javac/annotations/repeatingAnnotations/combo/ReflectionTest.java
+ test/tools/javac/annotations/repeatingAnnotations/combo/expectedFiles/ExpectedBase.java
+ test/tools/javac/annotations/repeatingAnnotations/combo/expectedFiles/ExpectedContainer.java

Changeset: 88286a36bb34
Author:    mchung
Date:      2013-02-14 09:43 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/88286a36bb34

8006225: tools/jdeps/Basic.java failes with AssertionError
Reviewed-by: alanb

+ src/share/classes/com/sun/tools/jdeps/Analyzer.java
! src/share/classes/com/sun/tools/jdeps/Archive.java
! src/share/classes/com/sun/tools/jdeps/JdepsTask.java
! test/tools/jdeps/Basic.java

Changeset: 040f02711b73
Author:    jjg
Date:      2013-02-15 08:28 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/040f02711b73

8007052: javap should include the descriptor for a method in verbose mode
Reviewed-by: mcimadamore

! src/share/classes/com/sun/tools/javap/ClassWriter.java
! src/share/classes/com/sun/tools/javap/JavapTask.java
! src/share/classes/com/sun/tools/javap/Options.java
+ test/tools/javap/DescriptorTest.java

Changeset: 0baaae675b19
Author:    mcimadamore
Date:      2013-02-15 16:28 +0000
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/0baaae675b19

8006749: compiler does not allow Object protected methods to be used in lambda
Summary: Check.checkFunctionalInterface should take into account 'fake' override
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
+ test/tools/javac/lambda/LambdaConv26.java

Changeset: f6e667f52af4
Author:    mcimadamore
Date:      2013-02-15 16:28 +0000
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/f6e667f52af4

8007285: AbstractMethodError instead of compile-time error when method reference with super and abstract
Summary: Missing abstractness check on super rmethod references
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/comp/Attr.java
+ test/tools/javac/lambda/MethodReference62.java
+ test/tools/javac/lambda/MethodReference62.out

Changeset: 4ff468de829d
Author:    mcimadamore
Date:      2013-02-15 16:29 +0000
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/4ff468de829d

8007462: Fix provisional applicability for method references
Summary: Add speculative arity-based check to rule out potential candidates when stuck reference is passed to method
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/DeferredAttr.java
! src/share/classes/com/sun/tools/javac/comp/Resolve.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/diags/examples/IncompatibleArgTypesInMethodRef.java
+ test/tools/javac/lambda/TargetType60.java
+ test/tools/javac/lambda/TargetType60.out

Changeset: 3cd997b9fd84
Author:    mcimadamore
Date:      2013-02-15 16:30 +0000
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/3cd997b9fd84

8007535: Compiler crashes on @FunctionalInterface used on interface with two inherited methods with same signatures
Summary: Bad check in Types.interfaceCandidates
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/code/Types.java
+ test/tools/javac/lambda/FunctionalInterfaceAnno02.java

Changeset: 186023614cd3
Author:    mcimadamore
Date:      2013-02-15 16:31 +0000
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/186023614cd3

8007427: Annotation element as '_' gives compiler error instead of a warning
8007401: Write test to check for generation of warnings when '_' is used as an identifier
Summary: Extended identifier production not used in annotation values
Reviewed-by: jjg
Contributed-by: sonali.goel at oracle.com

! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
+ test/tools/javac/lambda/IdentifierTest.java
+ test/tools/javac/lambda/IdentifierTest.out

Changeset: 258c72fa7fa2
Author:    mcimadamore
Date:      2013-02-15 16:37 +0000
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/258c72fa7fa2

Merge


Changeset: da2f7dd53915
Author:    mcimadamore
Date:      2013-02-15 18:13 +0000
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/da2f7dd53915

8008309: TargetType60 fails because of bad golden file
Summary: bad golden file
Reviewed-by: jjg

! test/tools/javac/lambda/TargetType60.out

Changeset: 9fb4f223a90d
Author:    jjg
Date:      2013-02-15 11:26 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/9fb4f223a90d

8008313: 8007052 breaks test/tools/javap/MethodParameters.java
Reviewed-by: darcy

! test/tools/javap/MethodParameters.java

Changeset: f1f605f85850
Author:    rfield
Date:      2013-02-15 18:40 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/f1f605f85850

8004969: Generate $deserializeLambda$ method
8006763: super in method reference used in anonymous class - ClassFormatError is produced
8005632: Inner classes within lambdas cause build failures
8005653: Lambdas containing inner classes referencing external type variables do not correctly parameterize the inner classes
Reviewed-by: mcimadamore

! src/share/classes/com/sun/tools/javac/code/Symtab.java
! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.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/util/Names.java
+ test/tools/javac/lambda/LambdaInnerTypeVarArgs.java
+ test/tools/javac/lambda/LambdaInnerTypeVarReflect.java
+ test/tools/javac/lambda/MethodReference61.java

Changeset: e8b1c02dad3b
Author:    wmdietl
Date:      2013-02-17 20:35 -0800
URL:       http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/e8b1c02dad3b

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

! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
! src/share/classes/com/sun/tools/javac/comp/Resolve.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/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! src/share/classes/com/sun/tools/javac/util/Names.java



More information about the type-annotations-dev mailing list