mcimadamore@1393: /* mcimadamore@1393: * @test /nodynamiccopyright/ mcimadamore@1393: * @summary check that default overrides are properly type-checked mcimadamore@1415: * @compile/fail/ref=Neg10.out -Werror -Xlint:unchecked -XDrawDiagnostics Neg10.java mcimadamore@1393: */ mcimadamore@1393: class Neg10 { mcimadamore@1393: interface I { mcimadamore@1393: default void m() throws X { } mcimadamore@1393: } mcimadamore@1393: mcimadamore@1393: static class C1 { mcimadamore@1393: public void m() throws Exception { } //unchecked (throws) override mcimadamore@1393: } mcimadamore@1393: mcimadamore@1393: static class C2 extends C1 implements I { } mcimadamore@1393: mcimadamore@1393: static class C3 implements I { mcimadamore@1393: public void m() throws Exception { } //unchecked (throws) override mcimadamore@1393: } mcimadamore@1393: }