
| Key: |
CAY-710
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Adrian Wiesmann
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
| |
Size |
|
patch.txt |
2006-11-22 09:09 PM |
Adrian Wiesmann |
2 kB |
|
|
| Resolution Date: |
22/Nov/06 11:45 PM
|
|
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.
|
|
Description
|
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. |
Show » |
|