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=NotTypeParameter.out -XDrawDiagnostics -source 1.7 NotTypeParameter.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<@A K> { jjg@309: @A void test() { } jjg@309: } jjg@309: jjg@309: @Target(ElementType.TYPE_USE) jjg@309: @interface A { }