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

XMLEncoder should use chained exceptions

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_2000

      Description



      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: