Issue Details (XML | Word | Printable)

Key: CAY-710
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Adrian Wiesmann
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Cayenne

XMLDecoder decodes Dates wrong

Created: 22/Nov/06 09:07 PM   Updated: 09/Nov/08 01:14 AM
Component/s: Cayenne Core Library
Affects Version/s: 3.0
Fix Version/s: 3.0M1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch.txt 2006-11-22 09:09 PM Adrian Wiesmann 2 kB

Resolution Date: 22/Nov/06 11:45 PM


 Description  « Hide
The XMLDecoder does not interpret Date fields properly. When decoding and creating a new instance of a class Cayenne does this:

return c.newInstance(new Object[] {
XMLUtil.getText(child)
});

But unfortunately the constructor for Date is different and the decoding process crashes because of this. Please see attached patch for a fix.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Adrian Wiesmann made changes - 22/Nov/06 09:09 PM
Field Original Value New Value
Attachment patch.txt [ 10515 ]
Andrus Adamchik made changes - 22/Nov/06 11:45 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Andrus Adamchik made changes - 22/Nov/06 11:46 PM
Fix Version/s 3.0 [ 10091 ]
Andrus Adamchik made changes - 22/Nov/06 11:55 PM
Status Resolved [ 5 ] Closed [ 6 ]
Ari Maniatis made changes - 09/Nov/08 01:14 AM
Fix Version/s 3.0M1 [ 10124 ]
Fix Version/s 3.0 [ 10091 ]
Henri Yandell made changes - 21/Mar/09 07:51 AM
Project Import Sat Mar 21 00:51:04 PDT 2009 [ 1237621864637 ]