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

Hannes Wallnöfer hannesw at openjdk.org
Tue Feb 25 14:25:57 UTC 2025


On Tue, 25 Feb 2025 13:53:59 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

> The carret position points to the second link (of the two conflicting links) Here are some examples, there is some text after the carret but I found it hard to deal with.

Yes, if you give the error reporting message a multi-line message it will print the first line, then the source position and caret in the next two lines, and then the rest of the message. 

This is a bit weird, and probably a reason to avoid messages with line breaks. Can you narrow down the code fragment further, maybe to just the place in which the links overlap (i.e. the part that is matched by one of the links)?

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

PR Comment: https://git.openjdk.org/jdk/pull/23328#issuecomment-2682150318


More information about the javadoc-dev mailing list