Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4410118

Modify CertPath exception classes to use new chained exception mechanism

XMLWordPrintable

    • beta
    • sparc
    • solaris_7
    • Verified


      sean.mullan@ireland 2001-01-31

      There is new support for chained exceptions in J2SE 1.4 (listed in the
      Merlin JSR059 as ID:4293532). The java.lang.Throwable class has new
      methods (initCause(), getCause()) and a constructor to support chaining
      (or wrapping exceptions).

      The CertPathValidatorException, CertPathBuilderException and CertStoreException
      classes include their own support for wrapping exceptions. We *really should* adjust the API to use the new methods for wrapping exceptions.
      Not doing so is bad design and redundant and makes it more cumbersome
      to migrate to the new methods in a future release.

      API changes to the 3 exception classes include the following:

      1) Change :
           public Exception getInternalException()
         to:
           public Throwable getCause()

      2) Change constructors to take a Throwable instead of an Exception

            mullan Sean Mullan
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: