Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Sling Eclipse IDE 1.0.4
-
None
Description
On certain paths, JcrNode equals and hashcode perform copies of the their domElement, manipulate them and use them for equals/hashCode computations, e.g.
Element domElementCopy = domElement.copy();
domElementCopy.clearChildren();
Element otherDomElementCopy = other.domElement.copy();
otherDomElementCopy.clearChildren();
return domElementCopy.toString().equals(otherDomElementCopy.toString());
This has the potential to be quite expensive and should be corrected