hg: jdk8/tl/jdk: 7173432: Handle null key at HashMap resize (original) (raw)

mike.duigou at oracle.com mike.duigou at oracle.com
Fri Jun 1 07:15:57 UTC 2012


Changeset: 7baa22e6a6b3 Author: mduigou Date: 2012-06-01 00:05 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7baa22e6a6b3

7173432: Handle null key at HashMap resize Summary: If the key to be inserted 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. Reviewed-by: darcy

! src/share/classes/java/util/HashMap.java



More information about the core-libs-dev mailing list