[JIRA] Created: (CAY-710) XMLDecoder decodes Dates wrong

From: Adrian Wiesmann (JIRA) ("Adrian)
Date: Wed Nov 22 2006 - 16:08:04 EST

  • Next message: Andrus Adamchik: "Re: [JIRA] Updated: (CAY-316) stream support for blob/clob"

    XMLDecoder decodes Dates wrong
    ------------------------------

             Key: CAY-710
             URL: http://issues.apache.org/cayenne/browse/CAY-710
         Project: Cayenne
            Type: Bug

      Components: Cayenne Core Library
        Versions: 3.0
        Reporter: Adrian Wiesmann

    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.

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators:
       http://issues.apache.org/cayenne/secure/Administrators.jspa
    -
    For more information on JIRA, see:
       http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Wed Nov 22 2006 - 16:08:36 EST