Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
12 lines
289 B
Java
12 lines
289 B
Java
/* @test /nodynamiccopyright/
|
|
* @bug 8037385
|
|
* @summary Must not allow static interface method invocation in legacy code
|
|
* @compile -Xlint:-options StaticInvokeSimple.java
|
|
*/
|
|
import java.util.stream.Stream;
|
|
|
|
class StaticInvokeSimple {
|
|
void test() {
|
|
Stream.empty();
|
|
}
|
|
}
|