[ http://issues.apache.org/jira/browse/XALANJ-2235?page=all ]
Henry Zongaro resolved XALANJ-2235:
-----------------------------------
Resolution: Invalid
I believe this is the correct behaviour. The JAXP 1.3 clarified the behaviour
of the default ErrorListener. See [1] which reads as follows:
«If an application does not register its own custom ErrorListener, the default
ErrorListener is used which reports all warnings and errors to System.err and
does not throw any Exceptions. Applications are strongly encouraged to register
and use ErrorListeners that insure proper behavior for warnings and errors.»
[1] http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/ErrorListener.html
> 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]