java-topology/test/langtools/tools/javac/Diagnostics/8043251/T8043251.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

10 lines
322 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8043251
* @summary Confusing error message with wrong number of type parameters
* @compile/fail/ref=T8043251.out -XDrawDiagnostics T8043251.java
*/
import java.util.function.Function;
class T8043251 {
Function<String, String> f = Function.<String, String>identity();
}