1.1 --- a/test/tools/javac/annotations/typeAnnotations/referenceinfos/Constructors.java Tue Aug 20 15:12:16 2013 -0700 1.2 +++ b/test/tools/javac/annotations/typeAnnotations/referenceinfos/Constructors.java Wed Aug 21 16:13:50 2013 -0700 1.3 @@ -85,4 +85,24 @@ 1.4 " } } }"; 1.5 } 1.6 1.7 + @TADescriptions({ 1.8 + @TADescription(annotation = "TA", type = CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT, 1.9 + typeIndex = 0, offset = 4), 1.10 + @TADescription(annotation = "TB", type = CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT, 1.11 + typeIndex = 0, offset = 0) 1.12 + }) 1.13 + public String generic1() { 1.14 + return "class Test { <T> Test(int i) { new <@TA T>Test(); }" + 1.15 + " <T> Test() { <@TB String>this(0); } }"; 1.16 + } 1.17 + 1.18 + @TADescriptions({ 1.19 + @TADescription(annotation = "TA", type = CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT, 1.20 + typeIndex = 0, offset = 0) 1.21 + }) 1.22 + public String generic2() { 1.23 + return "class Super { <T> Super(int i) { } } " + 1.24 + "class Test extends Super { <T> Test() { <@TA String>super(0); } }"; 1.25 + } 1.26 + 1.27 }