8006517: PropertyHashMap.Element.equals() compares to Property
Reviewed-by: sundar
Contributed-by: james.laskey@oracle.com
--- a/nashorn/src/jdk/nashorn/internal/runtime/PropertyHashMap.java Wed Jan 16 21:26:55 2013 +0530
+++ b/nashorn/src/jdk/nashorn/internal/runtime/PropertyHashMap.java Thu Jan 17 10:33:39 2013 -0400
@@ -606,7 +606,7 @@
@Override
public boolean equals(final Object other) {
assert property != null && other != null;
- return other instanceof Property && property.equals(other);
+ return other instanceof Element && property.equals(((Element)other).property);
}
@Override