[threeten-dev] hg: threeten/threeten/jdk: 3 new changesets
roger.riggs at oracle.com
roger.riggs at oracle.com
Fri Mar 15 15:54:17 PDT 2013
Changeset: 3a47ed8acafb
Author: rriggs
Date: 2013-03-15 17:04 -0400
URL: http://hg.openjdk.java.net/threeten/threeten/jdk/rev/3a47ed8acafb
#283 Serialization of Chronology
#279 Inconsistent serialization for ISO chronology
Added protected to Chronology.writeReplace so that all subclasses can
use the default serialization of Chronology.
Chronology does not implement Serializable so it is the subclass choice.
The recommendation is to make subclasses serializable.
WriteReplace is not final so that a subclass can provide its own serialization.
Modified the initialization of Chronologies so that built-in Chronologies
cannot be replaced by ServiceLoader Chronologies.
Corrected Chronology.ofLocale so it checks the ServiceLoader
for the application if the requested calendar type from the
locale is not found from the system initialized Chronologies.
! src/share/classes/java/time/chrono/Chronology.java
! src/share/classes/java/time/chrono/HijrahChronology.java
! src/share/classes/java/time/chrono/IsoChronology.java
! src/share/classes/java/time/chrono/JapaneseChronology.java
! src/share/classes/java/time/chrono/JapaneseDate.java
! src/share/classes/java/time/chrono/MinguoChronology.java
! src/share/classes/java/time/chrono/ThaiBuddhistChronology.java
! test/java/time/tck/java/time/TestChronology.java
+ test/java/time/tck/java/time/chrono/TCKChronologySerialization.java
! test/java/time/tck/java/time/chrono/TCKTestServiceLoader.java
! test/java/time/tck/java/time/chrono/TestJapaneseChronology.java
Changeset: 9f3d8852b19d
Author: rriggs
Date: 2013-03-15 17:08 -0400
URL: http://hg.openjdk.java.net/threeten/threeten/jdk/rev/9f3d8852b19d
Renamed Test to TCKIsoChronology; it only tested ISO
- test/java/time/tck/java/time/chrono/TCKChronology.java
+ test/java/time/tck/java/time/chrono/TCKIsoChronology.java
Changeset: cfb0e3db42e3
Author: rriggs
Date: 2013-03-15 17:16 -0400
URL: http://hg.openjdk.java.net/threeten/threeten/jdk/rev/cfb0e3db42e3
renamed test into chrono package TCKChronology
- test/java/time/tck/java/time/TestChronology.java
+ test/java/time/tck/java/time/chrono/TCKChronology.java
More information about the threeten-dev
mailing list