RFR: 8372055: Fragment link tag does not work in package info [v2]
Chen Liang
liach at openjdk.org
Wed Nov 26 13:17:18 UTC 2025
On Wed, 26 Nov 2025 09:08:43 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:
>> Please review a change to make unqualified anchor references such as `{@link ##anchor link}` work everywhere. Previously, such links only worked in class pages. The fix consists in attributing the correct Element in `JavacTrees::attributeDocReference` for references declared in API elements, and setting it to `null` for references defined in `doc-files` to make them work as local links.
>>
>> Because of unattributed `doc-files` references, we also have to exclude such links from the reference check in DocLint. This is fine because local references always have a target element, and we do not check the anchor anyway.
>
> Hannes Wallnöfer has updated the pull request incrementally with one additional commit since the last revision:
>
> Review feedback
Marked as reviewed by liach (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/28372#pullrequestreview-3510915110
More information about the javadoc-dev
mailing list