aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 8007285 aoqi@0: * @summary AbstractMethodError instead of compile-time error when method reference with super and abstract aoqi@0: * @compile/fail/ref=MethodReference62.out -XDrawDiagnostics MethodReference62.java aoqi@0: */ aoqi@0: class MethodReference62 { aoqi@0: interface SAM { aoqi@0: int m(); aoqi@0: } aoqi@0: aoqi@0: static abstract class Sup { aoqi@0: abstract int foo() ; aoqi@0: } aoqi@0: aoqi@0: static abstract class Sub extends Sup { aoqi@0: abstract int foo() ; aoqi@0: void test() { aoqi@0: SAM s = super::foo; aoqi@0: } aoqi@0: } aoqi@0: }