Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-710

XMLDecoder decodes Dates wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M1
    • Core Library
    • None

    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.

      Attachments

        1. patch.txt
          2 kB
          Adrian Wiesmann

        Activity

          People

            Unassigned Unassigned
            awiesmann Adrian Wiesmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: