java-topology/test/langtools/tools/javac/T8326204b.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
432 B
Java

import java.util.Map;
/*
* @test /nodynamiccopyright/
* @bug 8326204
* @summary yield statements doesn't allow cast expressions with more than 1 type arguments
* @compile/fail/ref=T8326204b.out -XDrawDiagnostics --should-stop=at=FLOW -XDdev T8326204b.java
*/
public class T8326204b {
private static void t(int i) { yield((Map<String, String>) null, 2); }
private static void yield(Map<String, String> m, int j) { }
}