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

wrong exception chain in org.apache.xalan.transformer.TransformerIdentityImpl.transform()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 2.7.1, 2.7
    • None
    • transformation
    • None

    Description

      line 497 in TransformerIdentityImpl.transform() (v 1.37) should be changed from
      throw new TransformerException(wre.getException());
      to
      throw new TransformerException(throwable);

      There is a loop that finds the root exception, but that root is not used in the end:

      catch (org.apache.xml.utils.WrappedRuntimeException wre)
      {
      Throwable throwable = wre.getException();
      while (throwable instanceof org.apache.xml.utils.WrappedRuntimeException)

      { throwable = ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException(); }

      throw new TransformerException(wre.getException()); // line 497
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcsahnwaldt Christopher Sahnwaldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: