1.1 --- a/test/tools/javac/annotations/typeAnnotations/failures/AnnotationVersion.java Tue Oct 15 22:15:35 2013 +0200 1.2 +++ b/test/tools/javac/annotations/typeAnnotations/failures/AnnotationVersion.java Tue Oct 15 15:57:13 2013 -0700 1.3 @@ -3,11 +3,13 @@ 1.4 * @bug 6843077 8006775 1.5 * @summary test that only Java 8 allows type annotations 1.6 * @author Mahmood Ali 1.7 + * @compile AnnotationVersion.java 1.8 * @compile/fail/ref=AnnotationVersion.out -XDrawDiagnostics -Xlint:-options -source 1.6 AnnotationVersion.java 1.9 * @compile/fail/ref=AnnotationVersion7.out -XDrawDiagnostics -Xlint:-options -source 1.7 AnnotationVersion.java 1.10 */ 1.11 -class AnnotationVersion { 1.12 - public void method(@A AnnotationVersion this) { } 1.13 -} 1.14 +import java.lang.annotation.*; 1.15 1.16 +class myNumber<T extends @A Number> { } 1.17 + 1.18 +@Target(ElementType.TYPE_USE) 1.19 @interface A { }