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

17 lines
375 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5011073
* @summary javac should implement JLS3 three-pass overload resolution
* @author gafter
*
* @compile/fail/ref=T5011073.out -XDrawDiagnostics T5011073.java
*/
import java.util.*;
class T5011073 {
static void f(Set<String> s, Class<String> c) {}
static void g(Set<Integer> s, Class c) {
f(s, c);
}
}