The following comment has been added to this issue:
Author: elharo
Created: Wed, 20 Oct 2004 7:19 AM
Body:
I don't seem to have the option to reopen this bug, but I do think there should be
nothing in an XSLT stylesheet that should be able to cause *Java* to throw an Error.
The easy fix is to catch StackOverflowError and wrap it in a TransformerException or
some such before rethrowing it. The harder fix would be to detect this problem in the
stylesheet up front, which would probably speed this case up quite a lot. However, at
least the easy fix should be implemented.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XALANJ-1958?page=comments#action_54389
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-1958
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-1958
Summary: Stack overflow due to incorrect stylesheet
Type: Bug
Status: Resolved
Priority: Major
Resolution: INVALID
Project: XalanJ2
Components:
Xalan-interpretive
parse-or-compile
Versions:
2.6
Assignee:
Reporter: elharo
Created: Mon, 20 Sep 2004 12:16 PM
Updated: Wed, 20 Oct 2004 7:19 AM
Description:
One of the Microsoft OASIS error test cases, Errors_err073, causes a
StackOverflowError. I've tested this with Java 1.4.2_05 on Linux and Mac OS X.
[EMAIL PROTECTED] Errors]$ java -Xbootclasspath/p:/opt/xalan-j_2_6_0/bin/xalan.jar
-classpath
/opt/xalan-j_2_6_0/bin/xalansamples.jar:/opt/xalan-j_2_6_0/bin/xercesImpl.jar
org.apache.xalan.xslt.Process -IN data.xml -XSL param-dup.xsl
(Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]