jdk-24/langtools/test/tools/javac/defaultMethods/Neg16.java
Andreas Lundblad fae7d60062 8005222: Fixed bugs should have tests with bugid in @bug tag
Reviewed-by: jfranck, jjg
2013-09-10 13:47:51 +02:00

14 lines
383 B
Java

/* @test /nodynamiccopyright/
* @bug 7192246
* @summary check that level skipping in default super calls is correctly rejected
* @compile/fail/ref=Neg16.out -XDrawDiagnostics Neg16.java
*/
class Neg16 {
interface I { default void m() { } }
interface J extends I { default void m() { } }
static class C implements I, J {
void foo() { I.super.m(); }
}
}