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

XMLEncoder should use chained exceptions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • client-libs
    • x86
    • windows_2000



      Name: gm110360 Date: 07/14/2003


      A DESCRIPTION OF THE REQUEST :
      Writing persistance delegates can be tricky and during developement one often runs into exceptions. Unfortunately these are not exposed as could be with the new 1.4 exception chaining. The following can be found in XMLEncoder.java:338.

              catch (Exception e) {
                  getExceptionListener().exceptionThrown(new Exception("discarding statement " + oldStm));
              }

      It would help a great deal if line 339 was changed to:

         getExceptionListener().exceptionThrown(new Exception("..." + oldStm, e));

      JUSTIFICATION :
      Exceptions during the developement of persistence delegates are bound to happen. These should be exposed.
      (Incident Review ID: 182845)
      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: