diff -r 38d3d1027f5a -r db91d860156a test/tools/javac/lambda/TargetType21.java --- a/test/tools/javac/lambda/TargetType21.java Tue Jan 08 10:15:30 2013 +0100 +++ b/test/tools/javac/lambda/TargetType21.java Tue Jan 08 10:16:26 2013 +0100 @@ -25,7 +25,7 @@ void call(SAM3 sam) { } void test() { - call(x -> { throw new Exception(); }); //ok - resolves to call(SAM1) + call(x -> { throw new Exception(); }); //ambiguous call(x -> { System.out.println(""); }); //ok - resolves to call(SAM2) call(x -> { return (Object) null; }); //error - call(SAM3) is not applicable because of cyclic inference call(x -> { return null; }); ////ok - resolves to call(SAM1)