Integrated: 8372055: Fragment link tag does not work in package info
Hannes Wallnöfer
hannesw at openjdk.org
Wed Nov 26 13:39:56 UTC 2025
On Tue, 18 Nov 2025 13:28:37 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.
This pull request has now been integrated.
Changeset: 85d4f551
Author: Hannes Wallnöfer <hannesw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/85d4f551b1f82f1b43155a4ac3c5026ac580410e
Stats: 156 lines in 4 files changed: 135 ins; 0 del; 21 mod
8372055: Fragment link tag does not work in package info
Reviewed-by: liach
-------------
PR: https://git.openjdk.org/jdk/pull/28372
More information about the javadoc-dev
mailing list