diff -r 000000000000 -r 959103a6100f test/tools/javac/lambda/BadConv03.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/lambda/BadConv03.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,20 @@ +/* + * @test /nodynamiccopyright/ + * @bug 8003280 + * @summary Add lambda tests + * NPE while checking if subinterface is a SAM type + * @compile/fail/ref=BadConv03.out -XDrawDiagnostics BadConv03.java + */ + +class BadConv03 { + + interface A { + void a(); + } + + interface B extends A { //not a SAM (2 non-override equivalent abstracts!) + void a(int i); + } + + B b = ()-> { }; +}