You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Grégory Joseph (JIRA)" <ji...@apache.org> on 2008/08/01 03:42:31 UTC
[jira] Commented: (JCR-1644) make
NamespaceContext#getPrefix(java.lang.String) iterative instead of recursive
[ https://issues.apache.org/jira/browse/JCR-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618916#action_12618916 ]
Grégory Joseph commented on JCR-1644:
-------------------------------------
Any chance we could get the patch in the 1.4 branch ?
> make NamespaceContext#getPrefix(java.lang.String) iterative instead of recursive
> --------------------------------------------------------------------------------
>
> Key: JCR-1644
> URL: https://issues.apache.org/jira/browse/JCR-1644
> Project: Jackrabbit
> Issue Type: Improvement
> Components: jackrabbit-core, xml
> Affects Versions: core 1.4.5
> Reporter: Philippe Marschall
> Assignee: Jukka Zitting
> Priority: Minor
> Fix For: 1.5
>
> Attachments: JCR-1644-patch.diff, NamespaceContext.java, NamespaceContext.java.patch
>
>
> Currently the method org.apache.jackrabbit.core.xml.NamespaceContext#getPrefix(java.lang.String) uses recursion. For very large XML files (50 MB Magnolia website exports) this causes a stack overflow. The method can easily be rewritten using iteration.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.