I wonder if it's not better to declare enum constants of DayOfWeek (and Month) in an order that is not the usual week/month order to make clear that ordinal() doesn't work as expected.
By example they can be declared in alphabetical order.

cheers,
Rémi


On 02/07/2013 07:31 PM, Xueming Shen wrote:

8007392: JSR 310: DateTime API Updates

Webrev:
http://cr.openjdk.java.net/~sherman/8007392/
http://cr.openjdk.java.net/~sherman/8007392/javadoc

Note:
The Threeten API has been updated based on reviews and continued
development. The main changes included here are

 - Consolidating Chronology classes for local calendars in a
   new java.time.chrono package
 - Merging the localized calendars into java.time.chrono
   (removing package java.time.calendar)
 - Moving Year, YearMonth, MonthDay to java.time
 - Rename DateTimeFormatter print method to format()
 - Move DateTimeFormatters static methods to DateTimeFormatter
 - Redesign/remove DateTimeBuilder class - becomes package private
 - Replace TemporalAdder/Subtractor with TemporalAmount
 - Remove DateTimePrintException
 - Move OffsetDateTime and OffsetTime to java.time package
 - Remove OffsetDate
 - Rename chrono to chronology in class and method names
 - Rename ISO* classes and methods to Iso*
 - Refactor Period to be date based year/month/day
 - Refactor Duration to be time based  h/m/s

Thanks!
-Sherman






Reply via email to