changeset 16179:5b8bcfd712d3

8006517: PropertyHashMap.Element.equals() compares to Property Reviewed-by: sundar Contributed-by: james.laskey@oracle.com
author jlaskey
date Thu, 17 Jan 2013 10:33:39 -0400
parents 2704dd3b2691
children 374e36bd1357
files nashorn/src/jdk/nashorn/internal/runtime/PropertyHashMap.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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