1/* 2 * @test /nodynamiccopyright/ 3 * @bug 4973504 4 * @summary Compiler allows Inherited meta-attribute on local variable declaration. 5 * @author gafter 6 * 7 * @compile/fail/ref=WrongTarget2.out -XDrawDiagnostics WrongTarget2.java 8 */ 9 10import java.lang.annotation.Inherited; 11class Field {{ 12 @Inherited int vec; 13}} 14