aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8003280 aoqi@0: * @summary Add lambda tests aoqi@0: * This test is for identifying a non-SAM type 6: An interface that has a single abstract method, which is also public method in Object aoqi@0: * @compile/fail/ref=NonSAM1.out -XDrawDiagnostics NonSAM1.java Helper.java aoqi@0: */ aoqi@0: aoqi@0: public class NonSAM1 { aoqi@0: void method() { aoqi@0: Planet n = (Object o) -> true; aoqi@0: System.out.println("never reach here " + n); aoqi@0: } aoqi@0: }