DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17448>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17448

chained imports and includes fail with stack overflow.

           Summary: chained imports and includes fail with stack overflow.
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Xalan-Xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When a stylesheet imports two additional stylesheets and one of those
stylesheets includes another, the compilation fails with a stack overflow error.
The error is due to the precedence handling in the code.  This was exposed using
the org.apache.xalan.xsltc.cmdline.Compile class.  

Samples to be attached.


     [java] java.lang.StackOverflowError
     [java]     at
org.apache.xalan.xsltc.compiler.Stylesheet.setImportPrecedence(Stylesheet.java:207)
     [java]     at
org.apache.xalan.xsltc.compiler.Stylesheet.setImportPrecedence(Stylesheet.java:219)
     [java]     at
org.apache.xalan.xsltc.compiler.Stylesheet.setImportPrecedence(Stylesheet.java:210)
     ... continues between lines 210 and 219

Reply via email to