Blocks :
|
|
Duplicate :
|
Given the following (indirectly compiled in such a way to avoid errors): interface K { int m() default { return 99; } } interface L { int m() default { return 101; } } interface J extends K, L {} interface I extends J, K { int m() default { J.super.m(); } } class C implements I {} C c = new C(); c.m(); // expected: ICCE; actual no error An IncompatibleClassChangeError is expected but none is thrown. c.m() links to K.m().
|