Chetan Mehrotra created OAK-324:
-----------------------------------

             Summary: o.a.j.oak.spi.state.AbstractNodeState#toString causes 
evaluation of complete tree
                 Key: OAK-324
                 URL: https://issues.apache.org/jira/browse/OAK-324
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
    Affects Versions: 0.5
            Reporter: Chetan Mehrotra
            Priority: Minor


The toString method of o.a.j.oak.spi.state.AbstractNodeState triggers loading 
of complete tree to determine the string representation. The ChildNodeEntry 's 
toString method in 
org.apache.jackrabbit.oak.spi.state.AbstractChildNodeEntry#toString refers to 
the NodeState again which causes recursion and whole tree traversal gets 
triggered.toString

It should possibly limit the traversal to childNames only

PS: I wasted couple of hours to find out why my debug session in Intellij is 
becoming so slow because it "intelligently" tries to evaluate NodeState which 
was passed as method argument :(

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to