Index: modules/luni/src/main/java/java/util/HashMap.java =================================================================== --- modules/luni/src/main/java/java/util/HashMap.java.orig 2006-03-29 10:29:32.000000000 +0100 +++ modules/luni/src/main/java/java/util/HashMap.java 2006-04-22 09:37:51.000000000 +0100 @@ -47,7 +47,9 @@ Entry(Object theKey, Object theValue) { super(theKey, theValue); - this.hash = (theKey == null) ? 0 : theKey.hashCode(); + this.hash = + (theKey == null ? 0 : theKey.hashCode()) ^ + (theValue == null ? 0 : theValue.hashCode()); } public Object clone() {