JDK-4890260 : XMLEncoder should use chained exceptions
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-07-14
  • Updated: 2003-10-14
  • Resolved: 2003-10-14
Related Reports
Duplicate :  
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) 
======================================================================

Comments
EVALUATION This has been fixed for 1.4.2 as part of the fix to 4679556. ###@###.### 2003-07-14
14-07-2003