jjg@309: /* jjg@384: * @test /nodynamiccopyright/ jjg@309: * @bug 6843077 jjg@309: * @summary check for invalid annotatins given the target jjg@309: * @author Mahmood Ali jjg@309: * @compile/fail/ref=InvalidLocation.out -XDrawDiagnostics -source 1.7 InvalidLocation.java jjg@309: */ jjg@309: jjg@309: class InvalidLocation { jjg@309: InvalidLocation<@A ?> l; jjg@309: } jjg@309: jjg@309: @java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE) jjg@309: @interface A { }