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.
This commit is contained in:
commit
0a580b313d
70422 changed files with 17213626 additions and 0 deletions
32
test/langtools/tools/javac/lambda/LambdaConv28.java
Normal file
32
test/langtools/tools/javac/lambda/LambdaConv28.java
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* @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();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue