aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6843077 8006775 aoqi@0: * @summary test that only Java 8 allows type annotations aoqi@0: * @author Mahmood Ali aoqi@0: * @compile AnnotationVersion.java aoqi@0: * @compile/fail/ref=AnnotationVersion.out -XDrawDiagnostics -Xlint:-options -source 1.6 AnnotationVersion.java aoqi@0: * @compile/fail/ref=AnnotationVersion7.out -XDrawDiagnostics -Xlint:-options -source 1.7 AnnotationVersion.java aoqi@0: */ aoqi@0: import java.lang.annotation.*; aoqi@0: aoqi@0: class myNumber { } aoqi@0: aoqi@0: @Target(ElementType.TYPE_USE) aoqi@0: @interface A { }