[threeten-dev] Serialization in 310

roger riggs roger.riggs at oracle.com
Wed Sep 4 10:30:21 PDT 2013


Hi,

In support of clean-room implementations, the specification of the 
serialized
form for 310 needs to be more completely documented.  At present, it is not
possible to understand the structure of a stream and the correspondence to
the various classes without referring to the implementation.
The issues are primarily documentation but a review of the serialized form
documentation raised some questions.

There are several types that are not serializable that might be more 
useful if so.
For example, ChronoUnit and ChronoField would be useful to be able
to communicate or save the state of a flexible class that could hold
arbitrary units or fields.

There are some inconsistencies too, WeekFields is Serializable but
ISOFields and JulianFields are not.

Roger

p.s.

There is an issue based on the conformance issues:

  * JDK-8024164 <http://bugs.sun.com/view_bug.do?bug_id=8024164> JSR310
    serialization should be described in details



More information about the threeten-dev mailing list