Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2235

Xalan used to throw Excecption from fatalError in DefaultErrorHandler by default, behaviour changed in 2.7 to suppress it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.7
    • None
    • Xalan-extensions
    • 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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            sigee2000 Simon Goldsmith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: