2016-08-16 16:43:00 +02:00
|
|
|
/* @test /nodynamiccopyright/
|
|
|
|
* @bug 8037385
|
|
|
|
* @summary Must not allow static interface method invocation in legacy code
|
2018-07-06 10:28:56 -07:00
|
|
|
* @compile -Xlint:-options StaticInvokeSimple.java
|
2016-08-16 16:43:00 +02:00
|
|
|
*/
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
|
|
class StaticInvokeSimple {
|
|
|
|
void test() {
|
|
|
|
Stream.empty();
|
|
|
|
}
|
|
|
|
}
|