Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.7
-
None
-
None
-
All (windows and solaris)
Description
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);