You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2012/10/31 16:23:13 UTC
[jira] [Resolved] (OAK-324)
o.a.j.oak.spi.state.AbstractNodeState#toString causes evaluation of
complete tree
[ https://issues.apache.org/jira/browse/OAK-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel Reutegger resolved OAK-324.
----------------------------------
Resolution: Fixed
Fix Version/s: 0.6
Fixed in 1404199.
> 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
> Assignee: Marcel Reutegger
> Priority: Minor
> Fix For: 0.6
>
>
> 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