1.1 --- a/test/tools/javac/lambda/TargetType21.java Tue Jan 08 10:15:30 2013 +0100 1.2 +++ b/test/tools/javac/lambda/TargetType21.java Tue Jan 08 10:16:26 2013 +0100 1.3 @@ -25,7 +25,7 @@ 1.4 <R,A> void call(SAM3<R,A> sam) { } 1.5 1.6 void test() { 1.7 - call(x -> { throw new Exception(); }); //ok - resolves to call(SAM1) 1.8 + call(x -> { throw new Exception(); }); //ambiguous 1.9 call(x -> { System.out.println(""); }); //ok - resolves to call(SAM2) 1.10 call(x -> { return (Object) null; }); //error - call(SAM3) is not applicable because of cyclic inference 1.11 call(x -> { return null; }); ////ok - resolves to call(SAM1)