test/tools/javac/annotations/neg/WrongTarget2.java

Print this page

        

*** 25,35 **** * @test * @bug 4973504 * @summary Compiler allows Inherited meta-attribute on local variable declaration. * @author gafter * ! * @compile/fail -source 1.5 WrongTarget2.java */ import java.lang.annotation.Inherited; class Field {{ @Inherited int vec; --- 25,35 ---- * @test * @bug 4973504 * @summary Compiler allows Inherited meta-attribute on local variable declaration. * @author gafter * ! * @compile/fail WrongTarget2.java */ import java.lang.annotation.Inherited; class Field {{ @Inherited int vec;