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

23 lines
435 B
Java

/*
* @test /nodynamiccopyright/
* @bug 7034019
* @summary ClassCastException in javac with conjunction types
*
* @compile/fail/ref=T7034019d.out -XDrawDiagnostics T7034019d.java
*/
class T7034019c {
interface A {
abstract <T extends Number> T foo();
}
interface B {
abstract <T> T foo();
}
static abstract class E implements A,B {
void test() {
foo();
}
}
}