[threeten-dev] Public Eras changes
roger riggs
roger.riggs at oracle.com
Thu Feb 21 15:21:33 PST 2013
Hi,
Combining a number of issues related to Eras:
- The methods on Era that created a date based on the Era are
problematic for the HijrahChronology were the Era was unaware
of the variants. The methods Era.date(y,m,d) and Era.dateYearDay(y,d)
are removed.
- The Era.getChronology method is no longer necessary and has the
same problem for HijrahChronology of being unaware of the variants.
- Issue#261 <https://github.com/ThreeTen/threeten/issues/261> proposed
to expose the Eras as public enums and remove
the public static fields from the Chronologies.
(The JapaneseEra remains a class because of the unique need to be
able to define new Eras from supplied configuration data).
Please review and comment:
Webrev:
http://cr.openjdk.java.net/~rriggs/webrev-public-enum-eras/
Javadoc:
http://cr.openjdk.java.net/~rriggs/javadoc-public-enum-eras/
--
Thanks, Roger
Oracle Java Platform Group
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
developing practices and products that help protect the environment
More information about the threeten-dev
mailing list