Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

serializing Dates using POF

668705Dec 2 2008 — edited Aug 12 2009
I'm running into a problem using an external POF serializer to serialize/deserialize java.util.Date values.
In the serialize method, I'm using PofWriter.writeDateTime(), and in the deserialize method, I'm using PofReader.readDate().
However, when I do a round trip test the milliseconds field of the Date is not being retained.

The javadoc for PofWriter.writeDateTime() method says

"This method encodes the year, month, day, hour, minute, second and millisecond information of the specified Date object."

so is this a bug in the readDate() method, or should I be using a different set of methods to read/write Dates if
I want millisecond precision retained?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2009
Added on Dec 2 2008
9 comments
3,704 views