diff -r 1985e35e97b2 -r 7873d37f5b37 test/tools/javac/lambda/TargetType21.java --- a/test/tools/javac/lambda/TargetType21.java Mon Jan 21 11:16:28 2013 -0800 +++ b/test/tools/javac/lambda/TargetType21.java Mon Jan 21 20:13:56 2013 +0000 @@ -26,8 +26,8 @@ void test() { 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) + call(x -> { System.out.println(""); }); //ambiguous + call(x -> { return (Object) null; }); //cyclic inference + call(x -> { return null; }); //ambiguous } }