java-topology/test/langtools/tools/javac/generics/inference/4972073/T4972073b.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
428 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4972073
* @summary same interface allowed twice in compound type
* @compile/fail/ref=T4972073b.out -XDrawDiagnostics T4972073b.java
*/
public class T4972073b {
static class D {}
static interface MyInterface<E> {
public String foo();
}
static class MyClass {}
static class B<E extends MyClass & MyInterface<E> & MyInterface<E>> extends D {}
}