• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package annotations.tests.classfile.foo:
2annotation @A: @Retention(value=RUNTIME) @java.lang.annotation.Target(value={TYPE_USE})
3
4annotation @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})
8annotation @C: @Retention(value=RUNTIME) @java.lang.annotation.Target(value={TYPE_USE})
9	int fieldA
10	String fieldB
11
12package annotations.tests.classfile.cases:
13class TestObjectCreation:
14
15  method test()V :
16  	new # 1 : @annotations.tests.classfile.foo.B(value="first new")
17  	new # 12 : @annotations.tests.classfile.foo.B(value="a string")
18  	new # 23 : @annotations.tests.classfile.foo.A
19
20  method test2()V :
21  	new # 7 : @annotations.tests.classfile.foo.A
22  	new # 14 : @annotations.tests.classfile.foo.A
23
24  method test3()V :
25  	new # 1 : @annotations.tests.classfile.foo.B(value="new")
26		new # 12 : @annotations.tests.classfile.foo.A
27
28  method test4()V :
29  	new # 1 : @annotations.tests.classfile.foo.A
30  	new # 13 : @annotations.tests.classfile.foo.B(value="self test")
31
32