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

30 lines
558 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6294779
* @summary Problem with interface inheritance and covariant return types
* @author Maurizio Cimadamore
* @compile/fail/ref=T6294779c.out -XDrawDiagnostics T6294779c.java
*/
public class T6294779c<X> {
interface A {}
interface B {}
interface C {}
interface I1 {
T6294779c<? extends A> get();
}
interface I2 {
T6294779c<? extends B> get();
}
interface I3 {
T6294779c<? extends C> get();
}
interface I4 extends I1, I2, I3 {}
}