[ http://issues.apache.org/jira/browse/XALANJ-2313?page=comments#action_12443404 ] Brian Minchau commented on XALANJ-2313: ---------------------------------------
Sergey, I think you are right. We may not currently report an error or throw an exception when XSLTC can't compile a stylesheet, but pretty soon that null bytecodes has to get you. I agree this could have a better error, closer to the source of the problem. > XSLTC must reports about fatal error if can't compile > ----------------------------------------------------- > > Key: XALANJ-2313 > URL: http://issues.apache.org/jira/browse/XALANJ-2313 > Project: XalanJ2 > Issue Type: Bug > Components: XSLTC > Affects Versions: 2.7 > Reporter: Sergey Vladimirov > Attachments: patch.txt > > > XSLTC must reports about fatal error when can't compile code, not recoverable > error: > // Check that the transformation went well before returning > if (bytecodes == null) { > > ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_COMPILE_ERR); > TransformerConfigurationException exc = new > TransformerConfigurationException(err.toString()); > > // Pass compiler errors to the error listener > if (_errorListener != null) { > passErrorsToListener(xsltc.getErrors()); > Here should be passFatalErrorToListener or something. -- 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]
