RFR: 8346659: SnippetTaglet should report an error if provided ambiguous links [v6]

Hannes Wallnöfer hannesw at openjdk.org
Fri Feb 21 15:13:08 UTC 2025


On Fri, 21 Feb 2025 15:09:49 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

>> Some javadoc snippets can match multiple links to the same content, leading to different results in different javadoc runs.
>> This patch proposes emitting an error when such cases are encountered.
>> 
>> There is a very trivial, unrelated change in `TestGlobalHtml.java` because I noticed some whitespace wasn't right.
>
> Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix test bug

test/langtools/jdk/javadoc/doclet/ReproducibleSnippet/ReproducibleSnippetTest.java line 76:

> 74:                 "#a",
> 75:                 "One#ab",
> 76:                 "overlap in obj1.ab(a());\n     * {@snippet lang = java:\n       ^");

Why did you revert from using a text block for the whole message?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23328#discussion_r1965653654


More information about the javadoc-dev mailing list