java-topology/test/langtools/tools/javac/positions/T6264029.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

18 lines
480 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6264029
* @summary Compiler issues wrong unchecked warning for anonymous inner class
* @author Seetharama Avadhanam
* @compile -Xlint:unchecked -XDdev T6264029.java
* @compile/ref=T6264029.out -Xlint:unchecked -XDdev -XDrawDiagnostics T6264029.java
*/
class T6264029A<T,K> {
public T6264029A(K k) {}
}
public class T6264029 {
T6264029A a = new T6264029A("saaa") {
public void getNoneTest() {}
};
}