Thank you. Werner
Elvedin Trnjanin wrote: > I have added it - http://jira.codehaus.org/browse/CASTOR-2425 > > Werner Guttmann wrote: >> Hi, >> >> can you please create a new Jira issue for this problem, and attach your >> test ? >> >> Regards >> Werner >> >> Elvedin Trnjanin wrote: >> >>> http://www.castor.org/xml-fieldhandlers.html >>> >>> Using the example above, I've successfully unmarshalled a date in the >>> format of "FORMAT = "yyyy-MM-dd";", >>> XML: <date>2008-07-18</date> >>> >>> Attemping to do the same with time in a second field handler class with >>> "FORMAT = "HH:mm";", >>> XML: <time>15:00</time> >>> >>> The problem is that date and time are stored as Date type attributes in >>> the same object, so somehow the time attribute overwrites date, as date >>> does not have 2008-07-18 (with epoch values for everything else), but >>> rather 15:00 (time's value) while the time attribute is null. >>> >>> A simple (Eclipse) project that shows this issue, hopefully all the libs >>> are included, is at http://www.ods.org/~ximian/FieldHandlerIssue.tar.gz >>> >>> Expected (Correct) Output: >>> Date is: Fri Jul 18 00:00:00 CST 2008 >>> Time is: Thu Jan 01 15:00:00 CST 1970 >>> >>> Current Output: >>> Date is: Thu Jan 01 15:00:00 CST 1970 >>> Time is: null >>> >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

