jjg@309: /* jjg@384: * @test /nodynamiccopyright/ jjg@309: * @bug 6843077 jjg@309: * @summary test invalid location of TypeUse jjg@309: * @author Mahmood Ali jjg@309: * @compile/fail/ref=VoidMethod.out -XDrawDiagnostics -source 1.7 VoidMethod.java jjg@309: */ jjg@309: jjg@309: import java.lang.annotation.Target; jjg@309: import java.lang.annotation.ElementType; jjg@309: jjg@309: class VoidMethod { jjg@309: @A void test() { } jjg@309: } jjg@309: jjg@309: @Target(ElementType.TYPE_USE) jjg@309: @interface A { }