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

Fix issue with null key at resize of HashMap

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P2
    • Resolution: Fixed
    • 7-pool, 8
    • 8
    • core-libs
    • b41
    • 8
    • b43
    • generic
    • generic
    • Verified

    Backports

      Description

        If the key to be insterted into a HashMap is null and the table needs to be resized as part of the insertion then addEntry will try to recalculate the hash of a null key. This will fail with an NPE.

        Attachments

          Issue Links

            Activity

              People

                mduigou Mike Duigou
                mduigou Mike Duigou
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: