Details
Description
We recently came across a problem with Castor 1.0.3 where there was an exception during a getValue on a field (due to a remote call). The
exception was printed, but because of the way the IllegalStateExceptions were constructed, we could not get the causing exception (which had data we needed to accurately report the problem).
I would like to propose a simple change: Add the exception to the wrapping IllegalStateException constructed in FieldHandlerImpl.getValue().
I have attached a patch file for just that.
I am using this is my project now, and it behaves as I expect. I can add a specific test case for this if desired.
I will try to put together a simple code sample to produce the problem.
Activity
Paul Philion
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | CastorExceptionTest.java [ 22809 ] | |
| Attachment | CastorExceptionTest.xml [ 22810 ] |
Werner Guttmann
made changes -
| Assignee | Werner Guttmann [ wguttmn ] |
Werner Guttmann
made changes -
| Fix Version/s | 1.0.4 [ 12888 ] |
Werner Guttmann
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Werner Guttmann
made changes -
| Status | In Progress [ 3 ] | Open [ 1 ] |
Werner Guttmann
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Werner Guttmann
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |