aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8003280 aoqi@0: * @summary Add lambda tests aoqi@0: * the case in which no member reference is found is now treated as a normal error (not dependent on target-type) aoqi@0: * @compile/fail/ref=MethodReference53.out -XDrawDiagnostics MethodReference53.java aoqi@0: */ aoqi@0: class MethodReference53 { aoqi@0: aoqi@0: interface SAM1 { aoqi@0: void m(int i); aoqi@0: } aoqi@0: aoqi@0: interface SAM2 { aoqi@0: void m(long i); aoqi@0: } aoqi@0: aoqi@0: void m(SAM1 s1) { } aoqi@0: void m(SAM2 s1) { } aoqi@0: aoqi@0: void test() { aoqi@0: m(this::unknown); //should not generate outer resolution diagnostic aoqi@0: } aoqi@0: }