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

21 lines
714 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8020313 8247957
* @summary doclint doesn't reset HTML anchors correctly
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -Xmsgs:all,-missing -ref AnchorTest2.out AnchorTest2.java AnchorTest2a.java
* @run main DocLintTester -Xmsgs:all,-missing -ref AnchorTest2.out AnchorTest2a.java AnchorTest2.java
*/
/** */
public class AnchorTest2 {
/** <a id="AnchorTest2"> </a> */
public void a_name_AnchorTest2() { }
/** <a id="AnchorTest2"> </a> */
public void a_name_AnchorTest2_already_defined() { }
/** <a id="AnchorTest2a"> </a> */
public void a_name_AnchorTest2a_defined_in_other_file() { }
}