Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8341904

Search tag in inherited doc comment creates additional index item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • tools
    • None
    • b24
    • generic
    • generic

      When doc comment text containging an `{@index ...}` tag is inherited by means of `{@inheritDoc}`, an additional search tag item is created for inheriting class. While the link for the inherited search tag correctly points to the inheriting class, the link label contains the origin of the tag.

      The best solution would probably be not to create a new search tag for inherited doc comments, as it just duplicates the existing search tag.

      An example of this can seen when searching for "equivalence relation" in current JDK 24 API docs (the search tag does not exist in JDK 23, although the bug probably does).
      https://download.java.net/java/early_access/jdk24/docs/api/search.html?q=equivalence%20relation

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: