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

          Not sure if this bug affects earlier versions as well...

          awiesmann Adrian Wiesmann added a comment - Not sure if this bug affects earlier versions as well...

          Closing all 3.0 issues marked as resolved as of 11/22 - I logged a list of them in release notes.

          andrus Andrus Adamchik added a comment - Closing all 3.0 issues marked as resolved as of 11/22 - I logged a list of them in release notes.

          People

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

            Dates

              Created:
              Updated:
              Resolved: