JDK-8010225 : test in typeAnnotations/failures do not test TYPE_USE annotations
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2013-03-18
  • Updated: 2013-10-21
  • Resolved: 2013-10-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
There are several tests in tools/javac/annotations/typeAnnotations/failures that do not use TYPE_USE as a target type.  They fail as expected, but not specifically because because a type annotation is incorrectly used.

tools/javac/annotations/typeAnnotations/failures/AnnotatedImport.java
tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage1.java
tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage2.java
tools/javac/annotations/typeAnnotations/failures/AnnotationVersion.java
tools/javac/annotations/typeAnnotations/failures/BadCast.java
tools/javac/annotations/typeAnnotations/failures/IncompleteArray.java
tools/javac/annotations/typeAnnotations/failures/IncompleteVararg.java
tools/javac/annotations/typeAnnotations/failures/IndexArray.java
tools/javac/annotations/typeAnnotations/failures/OldArray.java
tools/javac/annotations/typeAnnotations/failures/StaticFields.java
tools/javac/annotations/typeAnnotations/failures/StaticMethods.java
Comments
Subsumed by JDK-8026754
21-10-2013

updated after some review comments: http://cr.openjdk.java.net/~ssides/8010225.2/ http://hg.openjdk.java.net/jdk8/tl/langtools/rev/b0c086cd4520
21-10-2013

http://cr.openjdk.java.net/~ssides/8010225/ Just ran 'failures' tests with changes from above with most recent promoted jdk8 and they all pass.
30-08-2013

We should test for failure for both regular and type annotations of (some of) the above.
14-05-2013