hg: jdk9/dev/langtools: 8044196: Incorrect applying of repeatable annotations with incompatible target to type parameter

andreas.lundblad at oracle.com andreas.lundblad at oracle.com
Thu Apr 30 10:35:53 UTC 2015


Changeset: 732890c00534
Author:    alundblad
Date:      2015-04-30 12:21 +0200
URL:       http://hg.openjdk.java.net/jdk9/dev/langtools/rev/732890c00534

8044196: Incorrect applying of repeatable annotations with incompatible target to type parameter
Summary: Additional applicability checks added.
Reviewed-by: jlahoda

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/annotations/repeatingAnnotations/InvalidClsTypeParamTarget.java
+ test/tools/javac/annotations/repeatingAnnotations/InvalidClsTypeParamTarget.out
+ test/tools/javac/annotations/repeatingAnnotations/InvalidMethodTypeParamTarget.java
+ test/tools/javac/annotations/repeatingAnnotations/InvalidMethodTypeParamTarget.out
+ test/tools/javac/annotations/repeatingAnnotations/InvalidMethodTypeUse.java
+ test/tools/javac/annotations/repeatingAnnotations/InvalidMethodTypeUse.out
+ test/tools/javac/annotations/repeatingAnnotations/InvalidRepAnnoOnCast.java
+ test/tools/javac/annotations/repeatingAnnotations/InvalidRepAnnoOnCast.out
+ test/tools/javac/annotations/repeatingAnnotations/brokenTypeAnnoContainer/BrokenTypeAnnoContainer.java
+ test/tools/javac/annotations/repeatingAnnotations/brokenTypeAnnoContainer/BrokenTypeAnnoContainer.out
+ test/tools/javac/annotations/repeatingAnnotations/brokenTypeAnnoContainer/T.java
+ test/tools/javac/annotations/repeatingAnnotations/brokenTypeAnnoContainer/TC.java
+ test/tools/javac/annotations/repeatingAnnotations/brokenTypeAnnoContainer/TCBroken.java
+ test/tools/javac/diags/examples/InvalidTypeContextRepeatableAnnotation.java



More information about the jdk9-dev-changes mailing list