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=6189>. 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=6189 ArrayIndexOutOfBoundsException in org.apache.xalan.xsltc.dom.DOMImpl$DOMBuilder.characters() Summary: ArrayIndexOutOfBoundsException in org.apache.xalan.xsltc.dom.DOMImpl$DOMBuilder.characters () Product: XalanJ2 Version: 2.2.0 Platform: All OS/Version: All Status: NEW Severity: Critical Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Under certain circumstances the execution (calling method transform(DOMImpl, TextOutput)) of compiled translets throws the exception above. In both characters() methods resizeTextArray(_text.length * 2); should be replaced by: resizeTextArray(Math.max(_text.length * 2,_currentOffset + length)); The exception is thrown because doubling the size of the _text array is not enough. Sorry for not providing a test case, but the exception is thrown after compiling a stylesheet with a lot of includes and only if the transformation is executed with special parametervalues.