Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
package p1; interface Sup { default void m(); } public interface Sub extends Sup { } package p2; class Foo implements p1.Sub { } Foo foo = new Foo(); foo.m(); //IllegalAccessError at runtime
|