[ http://issues.apache.org/jira/browse/XALANJ-1873?page=all ]
     
Brian Minchau resolved XALANJ-1873:
-----------------------------------

     Assign To:     (was: Xalan Developers Mailing List)
    Resolution: Won't Fix

> StackOverflowError occurs when recursive call of template is performed many 
> times.
> ----------------------------------------------------------------------------------
>
>          Key: XALANJ-1873
>          URL: http://issues.apache.org/jira/browse/XALANJ-1873
>      Project: XalanJ2
>         Type: Bug
>   Components: transformation, Xalan-interpretive
>     Versions: 2.5
>  Environment: Operating System: Windows XP
> Platform: PC
>     Reporter: Kazutoshi Ono
>     Priority: Critical
>  Attachments: StackOverflowErrorTest.java, StackOverflowErrorTest.java, 
> stackoverflow.xsl
>
> [Summary]
> StackOverflowError occurs when recursive call of template is performed many 
> times.
> [Version]
> I tested this bug using the following versions.
> Xalan
> - XalanJ2 2.5.1
> - XalanJ2 2.6.0
> - Xalan included in JRE 1.4.1_03
> OS/JVM
> - Windows XP Professional Version 2002 Service Pack1
> - Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
> [How to reproduce this bug]
> (1) Please download the following attached files into same folder.
> a. StackOverflowErrorTest.java
> b. stackoverflow.xsl
>   (This xslt is from "XSLT Bible" written by Michael Kay)
> (2) Please compile StackOverflowErrorTest.java and execute 
> StackOverflowErrorTest.StackOverflowError occurs.
> [Memo]
> (1) This bug doesn't occur when "bookCount" is small.
> example:
> line12:  int bookCount = 10; // -> Succeed
> line12:  int bookCount = 100; // -> Succeed
> line12:  int bookCount = 1000; // -> StackOverflowError
> (2) I tried to set recursion limit using
> org.apache.xalan.transformer.TransformerImpl#setRecursionLimit(int).
> The result was:
> transformerImpl.setRecursionLimit(-1); // -> StackOverflowError
> transformerImpl.setRecursionLimit(100000); // -> StackOverflowError
> transformerImpl.setRecursionLimit(1000000); // -> StackOverflowError

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to