| package annotations.tests.classfile.foo: |
| annotation @A: @Retention(value=RUNTIME) @Target(TYPE_USE) |
| |
| annotation @B: @Retention(value=RUNTIME) @Target(TYPE_USE) |
| String value |
| |
| // annotation @C: @Retention(value=CLASS) @java.lang.annotation.Target(value={TYPE_USE}) |
| annotation @C: @Retention(value=RUNTIME) @Target(TYPE_USE) |
| int fieldA |
| String fieldB |
| |
| package annotations.tests.classfile.cases: |
| class TestMethodReturnTypeGenericArray: |
| method test()Ljava/util/List; : |
| return: @annotations.tests.classfile.foo.A |
| |
| method test2()Ljava/util/List; : |
| return: @annotations.tests.classfile.foo.B(value="single-depth") |
| inner-type 3, 0 : @annotations.tests.classfile.foo.A |
| |
| method test3()[Ljava/lang/String; : |
| return: @annotations.tests.classfile.foo.A |
| inner-type 0, 0 : @annotations.tests.classfile.foo.B(value="on array element") |
| |
| method test4()[[Ljava/lang/String; : |
| return: @annotations.tests.classfile.foo.A |
| inner-type 0, 0 : @annotations.tests.classfile.foo.B(value="on") |
| inner-type 0, 0, 0, 0 : @annotations.tests.classfile.foo.B(value="in") |
| |
| method test5()Ljava/util/Set; : |
| return: |
| inner-type 3, 0 : @annotations.tests.classfile.foo.A |
| inner-type 3, 0, 0, 0 : @annotations.tests.classfile.foo.B(value="two-deep") |
| |
| method test6()Ljava/util/Map; : |
| return: |
| inner-type 3, 0 : @annotations.tests.classfile.foo.B(value="map as key") |
| inner-type 3, 1, 3, 0 : @annotations.tests.classfile.foo.B(value="array of value") |
| inner-type 3, 1, 3, 0, 0, 0 : @annotations.tests.classfile.foo.B(value="inner-most value") |
| inner-type 3, 1 : @annotations.tests.classfile.foo.B(value="set as value") |
| inner-type 3, 0, 3, 0, 0, 0 : @annotations.tests.classfile.foo.B(value="innermost key or key") |
| inner-type 3, 0, 3, 0 : @annotations.tests.classfile.foo.A |
| inner-type 3, 0, 3, 1 : @annotations.tests.classfile.foo.C(fieldA=01, fieldB="value of key") |
| inner-type 3, 0, 3, 1, 3, 0: @annotations.tests.classfile.foo.A |
| |