jdk-24/test/langtools/tools/javac/defaultMethods/static/StaticInvokeQualified.java
2018-07-06 10:28:56 -07:00

13 lines
399 B
Java

/* @test /nodynamiccopyright/
* @bug 8037385
* @summary Must not allow static interface method invocation in legacy code
* @compile -Xlint:-options StaticInvokeQualified.java
* @compile/fail/ref=StaticInvokeQualified7.out -source 7 -Xlint:-options -XDrawDiagnostics StaticInvokeQualified.java
*/
class StaticInvokeQualified {
void test() {
java.util.stream.Stream.empty();
}
}