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

Print this page

        

*** 25,34 **** * @test * @bug 4901264 * @summary JSR175 (2): don't allow annotating members from Object * @author gafter * ! * @compile/fail -source 1.5 ObjectMembers.java */ @ObjectMembers(hashCode = 23) @interface ObjectMembers {} --- 25,34 ---- * @test * @bug 4901264 * @summary JSR175 (2): don't allow annotating members from Object * @author gafter * ! * @compile/fail ObjectMembers.java */ @ObjectMembers(hashCode = 23) @interface ObjectMembers {}