8006517: PropertyHashMap.Element.equals() compares to Property
authorjlaskey
Thu, 17 Jan 2013 10:33:39 -0400
changeset 16179 5b8bcfd712d3
parent 16178 2704dd3b2691
child 16180 374e36bd1357
8006517: PropertyHashMap.Element.equals() compares to Property Reviewed-by: sundar Contributed-by: james.laskey@oracle.com
nashorn/src/jdk/nashorn/internal/runtime/PropertyHashMap.java
--- 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