aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8003280 aoqi@0: * @summary Add lambda tests aoqi@0: * This test is for identifying SAM types #5 and instantiating non-SAM types #7 through inner class, aoqi@0: see Helper.java for SAM types aoqi@0: * @compile/fail/ref=LambdaTest2_neg1.out -XDrawDiagnostics LambdaTest2_neg1.java Helper.java aoqi@0: */ aoqi@0: aoqi@0: public class LambdaTest2_neg1 { aoqi@0: aoqi@0: public static void main(String[] args) { aoqi@0: LambdaTest2_neg1 test = new LambdaTest2_neg1(); aoqi@0: //not convertible - QooRoo is not a SAM aoqi@0: test.methodQooRoo((Integer i) -> { }); aoqi@0: } aoqi@0: aoqi@0: void methodQooRoo(QooRoo qooroo) { } aoqi@0: }