• 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 TestObjectCreationGenericArray:
14
15  method test()V :
16  	new # 3 : @annotations.tests.classfile.foo.B(value="first new")
17  		inner-type 0, 0 : @annotations.tests.classfile.foo.A
18
19  method test2()V :
20  	new # 23 : @annotations.tests.classfile.foo.A
21  		inner-type 3, 0 : @annotations.tests.classfile.foo.B(value="str")
22
23  method test3()V :
24  	new # 1 : @annotations.tests.classfile.foo.B(value="new")
25			inner-type 3, 0 : @annotations.tests.classfile.foo.B(value="map")
26			inner-type 3, 0, 3, 0 : @annotations.tests.classfile.foo.A
27			inner-type 3, 0, 3, 1 : @annotations.tests.classfile.foo.B(value="map key string")
28		new # 12 : @annotations.tests.classfile.foo.A
29  		inner-type 3, 0 : @annotations.tests.classfile.foo.B(value="first level")
30  		inner-type 3, 1 : @annotations.tests.classfile.foo.B(value="value")
31  		inner-type 3, 1, 3, 0 : @annotations.tests.classfile.foo.B(value="on the array")
32  		inner-type 3, 1, 3, 0, 0, 0: @annotations.tests.classfile.foo.B(value="on array elements")
33
34  method test4()V :
35  	new # 1 : @annotations.tests.classfile.foo.A
36  		inner-type 3, 0 : @annotations.tests.classfile.foo.B(value="key")
37  		inner-type 3, 1 : @annotations.tests.classfile.foo.B(value="value")
38  		inner-type 3, 0, 0, 0 :@annotations.tests.classfile.foo.B(value="key element")
39  		inner-type 3, 1, 3, 0 : @annotations.tests.classfile.foo.B(value="value array")
40  		inner-type 3, 1, 3, 0, 0, 0 : @annotations.tests.classfile.foo.B(value="value array element")
41
42