diff -r 000000000000 -r 959103a6100f test/tools/javac/lambda/TargetType57.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/lambda/TargetType57.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,20 @@ +/* + * @test /nodynamiccopyright/ + * @bug 8007464 + * @summary Add graph inference support + * more smoke tests for graph inference + * @compile/fail/ref=TargetType57.out -XDrawDiagnostics TargetType57.java + */ +import java.util.*; +import java.util.function.*; + +class TargetType57 { + + void test(List list) { + m(list, s -> s.intValue(), s -> s.nonExistentMethod()); + } + + R m(List list, + Function f1, + Function f2) { return null; } +}