Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-297

Exceptions should use a JDK exception cause mechanism

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Java 1.5
    • Fix Version/s: Java 1.5.1
    • Component/s: Java
    • Security Level: Public (Public issues, viewable by everyone)
    • Labels:
      None

      Description

      Is there any reason why all org.apache.xml.security.** exceptions still use own "originalException" field to indicate a cause instead of a standard JDK mechanism? Since Throwable.getCause() returns null in this case, this complicates exception handling when a root cause needs to be determined.

      Interestingly, this was fixed many years ago in r350797 and then rolled back (because a compatibility with JDK 1.3 was required, I guess). However, since the 1.5.0 release requires JDK 1.5, for me it seems logical to make some refactorings to get rid of this relic.

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              gino Giedrius Noreikis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: