Converter for java.time.LocalDate (LocalTime and LocalDateTime) (Java 8)

218 views
Skip to first unread message

Geoffrey De Smet

unread,
Jan 11, 2017, 6:08:28 AM1/11/17
to xstrea...@googlegroups.com
Does XStream supports Java 8's java.time.* classes such as LocalDate and
LocalDateTime?
Out of the box or do we need to add a separate dependency?

Context:
java.util.Date is deprecated (and fundamentally broken).
java.time is the standardization of Joda time in java 8, so it is
joda++ and java.util.Date += 1000.

We have a PR to add such converters in our own package (org.kie.internal)
https://github.com/droolsjbpm/droolsjbpm-knowledge/pull/198/files#diff-dddeb33405131a27ba340f8e91b7b934R16
but I think this code belongs in the XStream project to avoid
duplication in other projects and improve quality / reduce maintenance.


Jörg Schaible

unread,
Jan 11, 2017, 5:09:37 PM1/11/17
to xstrea...@googlegroups.com
Hi Geoffrey,
It's actually on my list for the next 1.4.9 release (see also
https://github.com/x-stream/xstream/issues/75 and http://x-stream.github.io/jira/774/), but I had no time to work on it yet.

PRs welcome :)

Cheers,
Jörg

Reply all
Reply to author
Forward
0 new messages