mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00

Code to avoid duplicated errors about features not supported in the current source level moved to Log Reviewed-by: jjg
13 lines
528 B
Java
13 lines
528 B
Java
/* @test /nodynamiccopyright/
|
|
* @bug 8037385
|
|
* @summary Must not allow static interface method invocation in legacy code
|
|
* @compile -source 8 -Xlint:-options StaticInvokeQualified.java
|
|
* @compile/fail/ref=StaticInvokeQualified7.out -source 7 -Xlint:-options -XDrawDiagnostics StaticInvokeQualified.java
|
|
* @compile/fail/ref=StaticInvokeQualified6.out -source 6 -Xlint:-options -XDrawDiagnostics StaticInvokeQualified.java
|
|
*/
|
|
|
|
class StaticInvokeQualified {
|
|
void test() {
|
|
java.util.stream.Stream.empty();
|
|
}
|
|
}
|