test/tools/javac/annotations/typeAnnotations/referenceinfos/Constructors.java

changeset 2612
cb7e7928902f
parent 2150
ae4f5cb78ebd
child 2622
0714b4f7f507
equal deleted inserted replaced
2611:9e80ab1dad9e 2612:cb7e7928902f
44 } 44 }
45 45
46 @TADescriptions({ 46 @TADescriptions({
47 @TADescription(annotation = "TA", type = METHOD_RETURN, genericLocation = {1, 0}), 47 @TADescription(annotation = "TA", type = METHOD_RETURN, genericLocation = {1, 0}),
48 @TADescription(annotation = "TB", type = METHOD_RETURN, genericLocation = {1, 0}), 48 @TADescription(annotation = "TB", type = METHOD_RETURN, genericLocation = {1, 0}),
49 @TADescription(annotation = "TC", type = METHOD_FORMAL_PARAMETER, paramIndex = 0) 49 @TADescription(annotation = "TC", type = METHOD_FORMAL_PARAMETER, paramIndex = 1)
50 }) 50 })
51 @TestClass("Test$Inner") 51 @TestClass("Test$Inner")
52 public String innerClass() { 52 public String innerClass() {
53 return "class Test { class Inner {" + 53 return "class Test { class Inner {" +
54 " @TA Inner() {}" + 54 " @TA Inner() {}" +
59 @TADescriptions({ 59 @TADescriptions({
60 @TADescription(annotation = "TA", type = METHOD_RECEIVER), 60 @TADescription(annotation = "TA", type = METHOD_RECEIVER),
61 @TADescription(annotation = "TB", type = METHOD_RETURN, genericLocation = {1, 0}), 61 @TADescription(annotation = "TB", type = METHOD_RETURN, genericLocation = {1, 0}),
62 @TADescription(annotation = "TC", type = METHOD_RECEIVER), 62 @TADescription(annotation = "TC", type = METHOD_RECEIVER),
63 @TADescription(annotation = "TD", type = METHOD_RETURN, genericLocation = {1, 0}), 63 @TADescription(annotation = "TD", type = METHOD_RETURN, genericLocation = {1, 0}),
64 @TADescription(annotation = "TE", type = METHOD_FORMAL_PARAMETER, paramIndex = 0) 64 @TADescription(annotation = "TE", type = METHOD_FORMAL_PARAMETER, paramIndex = 1)
65 }) 65 })
66 @TestClass("Test$Inner") 66 @TestClass("Test$Inner")
67 public String innerClass2() { 67 public String innerClass2() {
68 return "class Test { class Inner {" + 68 return "class Test { class Inner {" +
69 " @TB Inner(@TA Test Test.this) {}" + 69 " @TB Inner(@TA Test Test.this) {}" +
75 @TADescription(annotation = "TA", type = METHOD_RECEIVER), 75 @TADescription(annotation = "TA", type = METHOD_RECEIVER),
76 @TADescription(annotation = "TB", type = METHOD_RECEIVER, genericLocation = {1, 0}), 76 @TADescription(annotation = "TB", type = METHOD_RECEIVER, genericLocation = {1, 0}),
77 @TADescription(annotation = "TC", type = METHOD_RETURN, genericLocation = {1, 0, 1, 0}), 77 @TADescription(annotation = "TC", type = METHOD_RETURN, genericLocation = {1, 0, 1, 0}),
78 @TADescription(annotation = "TD", type = METHOD_RECEIVER, genericLocation = {1, 0}), 78 @TADescription(annotation = "TD", type = METHOD_RECEIVER, genericLocation = {1, 0}),
79 @TADescription(annotation = "TE", type = METHOD_RETURN, genericLocation = {1, 0, 1, 0}), 79 @TADescription(annotation = "TE", type = METHOD_RETURN, genericLocation = {1, 0, 1, 0}),
80 @TADescription(annotation = "TF", type = METHOD_FORMAL_PARAMETER, paramIndex = 0) 80 @TADescription(annotation = "TF", type = METHOD_FORMAL_PARAMETER, paramIndex = 1)
81 }) 81 })
82 @TestClass("Outer$Middle$Inner") 82 @TestClass("Outer$Middle$Inner")
83 public String innerClass3() { 83 public String innerClass3() {
84 return "class Outer { class Middle { class Inner {" + 84 return "class Outer { class Middle { class Inner {" +
85 " @TC Inner(@TA Outer. @TB Middle Middle.this) {}" + 85 " @TC Inner(@TA Outer. @TB Middle Middle.this) {}" +

mercurial