java-topology/test/langtools/tools/javac/lambda/LambdaConv28.java
russell@unturf.com 0a580b313d undefect. CWE-407 — 63 sites patched across 27 ecosystems
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.
2026-03-26 17:11:57 -04:00

32 lines
628 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8181911
* @summary Verify that the analyzer does not affect ordinary compilation.
* @compile/ref=LambdaConv28.out -XDrawDiagnostics -XDfind=lambda LambdaConv28.java
*/
class LambdaConv28 {
public void test(A a) {
test(()-> {
return new I() {
public <T> void t() {
}
};
});
test(new A() {
public I get() {
return null;
}
});
}
public interface I {
public <T> void t();
}
public interface A {
public I get();
}
}