diff -r d80c3d6f4f05 -r 8832b6048e65 test/tools/javac/annotations/typeAnnotations/newlocations/Lambda.java --- a/test/tools/javac/annotations/typeAnnotations/newlocations/Lambda.java Thu Dec 12 19:19:07 2013 -0800 +++ b/test/tools/javac/annotations/typeAnnotations/newlocations/Lambda.java Fri Dec 13 14:13:03 2013 +0000 @@ -23,8 +23,9 @@ /* * @test - * @bug 8008077 + * @bug 8008077 8029721 * @summary new type annotation location: lambda expressions + * javac crash for annotated parameter type of lambda in a field * @compile Lambda.java * @author Werner Dietl */ @@ -57,6 +58,14 @@ LambdaInt2 getLambda() { return (@TA Object x, @TB Object y) -> { @TA Object l = null; System.out.println("We have: " + (@TB Object) x); }; } + + java.util.function.IntUnaryOperator x = (@TA int y) -> 1; + + static java.util.function.IntUnaryOperator xx = (@TA int y) -> 1; + + java.util.function.IntUnaryOperator foo() { + return (@TA int y) -> 2; + } } @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})