equal
deleted
inserted
replaced
1 /* @test /nodynamiccopyright/ |
|
2 * @bug 8037385 |
|
3 * @summary Must not allow static interface method invocation in legacy code |
|
4 * @compile -source 8 -Xlint:-options StaticInvoke.java |
|
5 * @compile/fail/ref=StaticInvoke7.out -source 7 -Xlint:-options -XDrawDiagnostics StaticInvoke.java |
|
6 * @compile/fail/ref=StaticInvoke6.out -source 6 -Xlint:-options -XDrawDiagnostics StaticInvoke.java |
|
7 */ |
|
8 import java.util.stream.Stream; |
|
9 |
|
10 class StaticInvoke { |
|
11 void test() { |
|
12 Stream.empty(); |
|
13 java.util.stream.Stream.empty(); |
|
14 } |
|
15 } |
|