java-topology/test/langtools/tools/javac/generics/6956758/T6956758neg.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

20 lines
420 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6956758
*
* @summary NPE in com.sun.tools.javac.code.Symbol - isSubClass
* @author Maurizio Cimadamore
* @compile/fail/ref=T6956758neg.out -XDrawDiagnostics T6956758neg.java
*
*/
class T6956758neg {
interface I {}
static class C {
<T extends Object & I> T cloneObject(T object) throws Exception {
return (T)object.clone();
}
}
}