mcimadamore@1393: /* mcimadamore@1393: * @test /nodynamiccopyright/ mcimadamore@1393: * @summary check that level skipping in default super calls is correctly rejected mcimadamore@1415: * @compile/fail/ref=Neg16.out -XDrawDiagnostics Neg16.java mcimadamore@1393: */ mcimadamore@1393: class Neg16 { mcimadamore@1393: interface I { default void m() { } } mcimadamore@1393: interface J extends I { default void m() { } } mcimadamore@1393: mcimadamore@1393: static class C implements I, J { mcimadamore@1393: void foo() { I.super.m(); } mcimadamore@1393: } mcimadamore@1393: }