1 /* |
1 /* |
2 * @test /nodynamiccopyright/ |
2 * @test /nodynamiccopyright/ |
3 * @summary check that abstract methods are discarded in overload resolution diags |
3 * @summary check that abstract methods are discarded in overload resolution diags |
4 * @compile/fail/ref=Neg12.out -XDallowDefaultMethods -XDrawDiagnostics Neg12.java |
4 * @compile/fail/ref=Neg12.out -XDrawDiagnostics Neg12.java |
5 */ |
5 */ |
6 class Neg12 { |
6 class Neg12 { |
7 |
7 |
8 interface I1 { |
8 interface I1 { |
9 default void m(String s) {}; |
9 default void m(String s) {}; |