hg: jdk7u/jdk7u-dev/jdk: 7173432: Handle null key at HashMap resize

mike.duigou at oracle.com mike.duigou at oracle.com
Fri Jun 1 00:36:06 PDT 2012


Changeset: 421b71e31687
Author:    mduigou
Date:      2012-06-01 00:32 -0700
URL:       http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/421b71e31687

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, alanb

! src/share/classes/java/util/HashMap.java
+ test/java/util/HashMap/NullKeyAtResize.java




More information about the jdk7u-dev mailing list