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

Duplicate entries in inherited method summaries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11
    • tools
    • None

      After fixing JDK-8177100 there are more cases where methods have duplicate entries in inherited method summaries. Examples of this can be seen in the documentation for java.util.HashSet[1], where two toArray methods are documented both as declared locally and in class AbstractCollection, and methods addAll, containsAll, and retainAll are documented both in class AbstractCollection and interface Map.

      The cause for these duplicate entries is likely the fact that overrides are detected along inheritance lines, and AbstractCollection does not implement interface Map.

      [1]: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/util/HashSet.html#methods-inherited-from-class-java.util.AbstractSet

            nbenalla Nizar Benalla
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: