On Wed, 26 Nov 2025 09:08:43 GMT, Hannes Wallnöfer <[email protected]> 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

Reply via email to