Xalan used to throw Excecption from fatalError in DefaultErrorHandler by
default, behaviour changed in 2.7 to suppress it
-------------------------------------------------------------------------------------------------------------------------
Key: XALANJ-2235
URL: http://issues.apache.org/jira/browse/XALANJ-2235
Project: XalanJ2
Type: Bug
Components: Xalan-extensions
Versions: 2.7
Environment: All (windows and solaris)
Reporter: Simon Goldsmith
In org.apache.xalan.transformer.TransformerImpl this line (below) having
"false" changes the previous default behaviour.
Also, setErrorHandler(new DefaultErrorHandler(true)) cannot be used on the
TransformerFactoryImpl to correct it, as it does not change the errorListener
in subsequently created TransformerImpl's. In fact, you have to call
setErrorHandler(new DefaultErrorHandler(true)) on ALL instances the factory
creates. I would say this is a bug - most easily fixable by changing the line
below to have no argument and letting the DefaultErrorHandler's default value
for m_throwExceptionOnError remain as true.
/**
* The SAX error handler, where errors and warnings are sent.
*/
private ErrorListener m_errorHandler =
new org.apache.xml.utils.DefaultErrorHandler(false);
--
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]