jdk-24/test/langtools/tools/javac/lambda/StaticMethodNegTest.java
2017-09-12 19:03:39 +02:00

27 lines
411 B
Java

/**
* @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();
}
}