Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Serializing a bit of java.sql.Timestamp code does lead to wrong results. An object containing a correct Timestamp object gets serialized like that:
<endDate>
<nanos>0</nanos>
</endDate>
Might be related to the XSTR-98. I would appreciate to get a workaround for it. Thanks.
All you have to do is register the SqlTimestampConverter.
xstream.registerConverter(new SqlTimestampConverter());