[ 
https://issues.apache.org/jira/browse/OAK-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378950#comment-15378950
 ] 

Chetan Mehrotra commented on OAK-4549:
--------------------------------------

Opened bug in JSR-333 https://java.net/jira/browse/JSR_333-77

> TraversingItemVisitor causes stackoverflowexception with breadth first 
> traversal
> --------------------------------------------------------------------------------
>
>                 Key: OAK-4549
>                 URL: https://issues.apache.org/jira/browse/OAK-4549
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Chetan Mehrotra
>             Fix For: 1.6
>
>         Attachments: OAK-4549-test.patch
>
>
> [TraversingItemVisitor|https://docs.adobe.com/docs/en/spec/jsr170/javadocs/jcr-1.0/javax/jcr/util/TraversingItemVisitor.html]
>  when used in breadth first traversal mode can lead to StackOverflowException 
> with very flat child list. This happens because it uses recursion [1] instead 
> of plain iteration which would increase the stack size proportional to number 
> of immediate child node.
> The code technically belong to JSR-283 project. For now creating the issue 
> here
> [1] 
> https://java.net/projects/jsr-283/sources/svn/content/trunk/src/java/javax/jcr/util/TraversingItemVisitor.java?rev=967



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to