23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @summary test for overriding with default method |
26 * @summary test for overriding with default method |
27 * @author Maurizio Cimadamore |
27 * @author Maurizio Cimadamore |
28 * @compile -XDallowDefaultMethods Pos04.java |
28 * @compile Pos04.java |
29 */ |
29 */ |
30 |
30 |
31 class Pos04 { |
31 class Pos04 { |
32 interface A { default int m() { return Pos04.m(this); } } |
32 interface A { default int m() { return Pos04.m(this); } } |
33 static abstract class B { public int m() { return 0; } } |
33 static abstract class B { public int m() { return 0; } } |