1 package annotations.tests.classfile.foo: 2 annotation @A: @Retention(value=RUNTIME) @java.lang.annotation.Target(value={TYPE_USE}) 3 4 annotation @B: @Retention(value=RUNTIME) @java.lang.annotation.Target(value={TYPE_USE}) 5 String value 6 7 // annotation @C: @Retention(value=CLASS) @java.lang.annotation.Target(value={TYPE_USE}) 8 annotation @C: @Retention(value=RUNTIME) @java.lang.annotation.Target(value={TYPE_USE}) 9 int fieldA 10 String fieldB 11 12 package annotations.tests.classfile.cases: 13 class TestMethodReceiver: 14 15 method test()V : 16 receiver : @annotations.tests.classfile.foo.A 17 @annotations.tests.classfile.foo.B(value="first method") 18 19 method test2()V : 20 receiver : @annotations.tests.classfile.foo.C(fieldA=2, fieldB="rec") 21 22 method test3()V : 23 receiver : @annotations.tests.classfile.foo.A 24 25 method test4()V : 26 receiver : @annotations.tests.classfile.foo.B(value="last method") 27