diff -r 0384683c64be -r ddb4a2bfcd82 test/tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java --- a/test/tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java Tue May 14 13:55:35 2013 -0700 +++ b/test/tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java Tue May 14 15:04:06 2013 -0700 @@ -259,4 +259,30 @@ "}"; } + @TADescriptions({ + @TADescription(annotation = "TA", type = METHOD_FORMAL_PARAMETER, + paramIndex = 0), + @TADescription(annotation = "TB", type = METHOD_FORMAL_PARAMETER, + paramIndex = 1), + @TADescription(annotation = "TC", type = METHOD_FORMAL_PARAMETER, + paramIndex = 1, genericLocation = { 3, 0 }), + @TADescription(annotation = "TD", type = LOCAL_VARIABLE, + lvarOffset = ReferenceInfoUtil.IGNORE_VALUE, + lvarLength = ReferenceInfoUtil.IGNORE_VALUE, + lvarIndex = ReferenceInfoUtil.IGNORE_VALUE), + @TADescription(annotation = "TE", type = CAST, + offset = ReferenceInfoUtil.IGNORE_VALUE, + typeIndex = 0) + }) + public String returnLambdaExpr1() { + return + "interface LambdaInt {" + + " void lambda(Object p1, List p2);" + + "}" + + "class Test {" + + " LambdaInt getLambda() {" + + " return (@TA Object x, @TB List<@TC Object> y) -> { @TD Object l = null; System.out.println((@TE Object) l); };" + + " }" + + "}"; + } }