1.1 --- a/test/tools/javac/lambda/TargetType21.java Mon Jan 21 11:16:28 2013 -0800 1.2 +++ b/test/tools/javac/lambda/TargetType21.java Mon Jan 21 20:13:56 2013 +0000 1.3 @@ -26,8 +26,8 @@ 1.4 1.5 void test() { 1.6 call(x -> { throw new Exception(); }); //ambiguous 1.7 - call(x -> { System.out.println(""); }); //ok - resolves to call(SAM2) 1.8 - call(x -> { return (Object) null; }); //error - call(SAM3) is not applicable because of cyclic inference 1.9 - call(x -> { return null; }); ////ok - resolves to call(SAM1) 1.10 + call(x -> { System.out.println(""); }); //ambiguous 1.11 + call(x -> { return (Object) null; }); //cyclic inference 1.12 + call(x -> { return null; }); //ambiguous 1.13 } 1.14 }