test/tools/javac/defaultMethods/Pos06.java

changeset 1415
01c9d4161882
parent 1393
d7d932236fee
child 2020
bb7271e64ef6
equal deleted inserted replaced
1414:843d3b191773 1415:01c9d4161882
23 23
24 /* 24 /*
25 * @test 25 * @test
26 * @summary check that well-formed MI hierarchies behaves well w.r.t. method resolution (i.e. no ambiguities) 26 * @summary check that well-formed MI hierarchies behaves well w.r.t. method resolution (i.e. no ambiguities)
27 * @author Maurizio Cimadamore 27 * @author Maurizio Cimadamore
28 * @compile -XDallowDefaultMethods Pos06.java 28 * @compile Pos06.java
29 */ 29 */
30 30
31 class Pos06 { 31 class Pos06 {
32 interface A { 32 interface A {
33 default void m() { Pos06.impl(this); } 33 default void m() { Pos06.impl(this); }

mercurial