JDK-8202622 : javadoc creates broken link caused by unencoded name
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 11
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2018-05-03
  • Updated: 2024-10-10
  • Resolved: 2024-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Relates :  
Description
See test test/langtools/jdk/javadoc/doclet/testAnchorNames/TestAnchorNames.java

When using JavadocTester.checkLinks, it shows that references are not correctly being encoded.

Starting subtest 3.1: Check links
out-html4/pkg1/RegClass.html:538: id not found: out-html4/constant-values.html#pkg1.RegClass.S_$$$$$INT

The constant_values page has the correctly encoded declaration:


<tbody>
<tr class="altColor">
<td class="colFirst"><a name="pkg1.RegClass.S_:D:D:D:D:DINT">
<!--   -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<th class="colSecond" scope="row"><code><a href="pkg1/RegClass.html#S_:D:D:D:D:DINT">S_$$$$$INT</a></code></th>
<td class="colLast"><code>0</code></td>
</tr>
</tbody>
Comments
We are now using HTML 5.
10-10-2024

Will become a non-issue when we drop support for HTML 4. When we drop support for HTML 4, we'll presumably update this test. At that time, this issue can be closed, if we have not already fixed it.
09-01-2019