java-topology/test/langtools/tools/doclint/CrashInAnnotateTest.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

31 lines
No EOL
821 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8266082
* @summary javac should not crash when seeing type annotations in links
* @compile/fail/ref=CrashInAnnotateTest.out -Xdoclint:all,-missing -XDrawDiagnostics CrashInAnnotateTest.java
*/
import java.util.List;
/** {@link #equals(@Deprecated Object)}
* {@link java.util.Map.@Deprecated Entry#getKey()}
*/
class CrashInAnnotateTest {
}
/** {@link #compare(Object, List<List<@Deprecated Object>>)} */
class CrashInAnnotateTest2 {
void compare(Object o, List<List<Object>> l) {}
}
/** {@link @Deprecated java.lang.Object#hashCode()} */
class CrashInAnnotateTest3 { }
/** {@link CrashInAnnotateTest4.@java.lang.Deprecated Inner#aField}
* {@link java.util.Map.@Deprecated#getKey()}
*/
class CrashInAnnotateTest4 {
class Inner {
Object aField;
}
}