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

13 lines
342 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6182950
* @summary methods clash algorithm should not depend on return type
* @author mcimadamore
* @compile/fail/ref=T6182950a.out -XDrawDiagnostics T6182950a.java
*/
import java.util.List;
class T6182950a {
int m(List<String> l) {return 0;}
double m(List<Integer> l) {return 0;}
}