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