jdk-24/test/langtools/tools/javac/lambda/StaticMethodNegTest.java

27 lines
411 B
Java
Raw Normal View History

/**
* @test /nodynamiccopyright/
* @bug 8008337
* @author sogoel
* @summary static method is called via super
* @compile/fail/ref=StaticMethodNegTest.out -XDrawDiagnostics StaticMethodNegTest.java
*/
interface A {
static String m() {
return "A";
}
}
interface B {
static String m() {
return "B";
}
}
interface AB extends A, B {
static String m() {
return A.super.m();
}
}