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

jdk.internal.util.ReferencedKeySet::add using wrong test

    XMLWordPrintable

Details

    • b13

    Backports

      Description

        Currently, add is returning intern(e) == null which will always be false. The correct test is intern(e) == e , that is, true when element is newly added.

        Attachments

          Issue Links

            Activity

              People

                jlaskey Jim Laskey
                jlaskey Jim Laskey
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: