test/tools/javac/defaultMethods/Neg12.java

changeset 1415
01c9d4161882
parent 1393
d7d932236fee
child 2020
bb7271e64ef6
equal deleted inserted replaced
1414:843d3b191773 1415:01c9d4161882
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) {};

mercurial