jjg@309: /* jjg@384: * @test /nodynamiccopyright/ jjg@309: * @bug 6843077 jjg@309: * @summary test that only java 7 allows type annotations jjg@309: * @author Mahmood Ali jjg@309: * @compile/fail/ref=AnnotationVersion.out -XDrawDiagnostics -source 1.6 AnnotationVersion.java jjg@309: */ jjg@309: class AnnotationVersion { jjg@309: public void method() @A { } jjg@309: } jjg@309: jjg@309: @interface A { }