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

Nizar Benalla nbenalla at openjdk.org
Tue Feb 25 13:45:31 UTC 2025


> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains nine additional commits since the last revision:

 - Improve error message by pointing to location of links
 - Merge branch 'master' into snippet-non-rep
 - fix test bug
 - respond to feedback
 - Merge remote-tracking branch 'origin/master' into snippet-non-rep
 - Merge remote-tracking branch 'upstream/master' into snippet-non-rep
 - adjusting error message
 - Merge remote-tracking branch 'upstream/master' into snippet-non-rep
 - emit error when encountering ambigious link

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23328/files
  - new: https://git.openjdk.org/jdk/pull/23328/files/56d1623f..9b2107d9

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23328&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23328&range=05-06

  Stats: 4540 lines in 98 files changed: 2060 ins; 2193 del; 287 mod
  Patch: https://git.openjdk.org/jdk/pull/23328.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23328/head:pull/23328

PR: https://git.openjdk.org/jdk/pull/23328


More information about the javadoc-dev mailing list