java-topology/test/langtools/tools/javac/varargs/5088429/T5088429Neg01.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

21 lines
399 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5088429
*
* @summary varargs overloading problem
* @author mcimadamore
* @compile/fail/ref=T5088429Neg01.out -XDrawDiagnostics T5088429Neg01.java
*
*/
class T5088429Neg01 {
interface A {}
interface B extends A {}
T5088429Neg01(A... args) {}
T5088429Neg01(A a, A... args) {}
void test(B b) {
new T5088429Neg01(b);
}
}