> Please review this fix to a bug in indexing. > > The bug has been dormant for many releases and was noticed only because its > likelihood was increased by > [JDK-8286470](https://bugs.openjdk.org/browse/JDK-8286470) in JDK 21. > > Here's the bug: every time an item is indexed, it is indexed relative to the > context that triggers the indexing. For example, if an item is indexed in the > context of a class page, then the index will refer to that class page. > However, if that same item is indexed in the context of the "Deprecated" > page, then the index will refer to the "Deprecated" page. > > Since an item is indexed every time it is seen, the fix is to never index an > item if seen in the context of a _derived_ page, such as hierarchy trees, > indexes, and various lists (e.g. deprecated, new, preview). The fix includes > a comprehensive test and updates an existing test to correct its bad > assumptions.
Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision: Respond to feedback ------------- Changes: - all: https://git.openjdk.org/jdk/pull/16271/files - new: https://git.openjdk.org/jdk/pull/16271/files/6061f913..2b0063b4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=16271&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16271&range=00-01 Stats: 59 lines in 8 files changed: 40 ins; 5 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/16271.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/16271/head:pull/16271 PR: https://git.openjdk.org/jdk/pull/16271