Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011172

CCC request to Update the OpenJDK Threeten Project in SE 8

    XMLWordPrintable

Details

    • b87
    • generic
    • generic
    • Verified

    Description

      JSR 310 has continued to refine and update the java.time API.
      In addition to general javadoc improvements, the changes include:

      java.time

      * Duration - added a static from(temporalAmount) method to simplify conversions from other amounts
      * Renamed the toString(Formatter) method to format(Formatter)
      * Period - added a static from(temporalAmount) method to simplify conversions
      * ZoneId -
         - Added getAvailableZoneIds method, a simpler mechanism than going to the provider
         - Added normalized() method to ease conversion to a fixed offset
         - renamed PRE and POST 2005 to SHORT_IDS

      java.time.chrono

      * ChronoLocalDate, ChronoLocalDateTime, ChonoZonedDateTime
         - changed xxx_COMPARATORs to static methods returning the Time Line Order comparators
         - Added a from(TemporalAcessor) method to ease conversions
      * Chronology
          - Added method to create a Date from EpochDay (And in each calendar subclass)
          - Added resolveDate to allow resolving date components by the Chronology
          - Serialization fixes
          - Replaced raw return types with wildcard type
      * Era
          - Removed factory methods and getChronology - they did not work correctly in all cases
          - Declared Era as a functional interface
      * Hijrah calendar variations -
          - Supporting the Umm alQura calendar
      * Added HijrahEra, IsoEra, JapaneseEra, MinguEra, ThaiBuddhistEra
          making the singletons public
      * MinguoDate, ThaiBuddhistDate, HijrahDate - Added getEra method to return the concrete Era type.

      java.time.format

      * DateTimeFormatter -
          - Added fields for the predefined formatters (moved from DateTimeFormatters class)
          - Updated patterns to be CLDR compatible
          - Moved documentation for the pattern letters to the class javadoc
          - Added support for Zone default and conversion
      * DateTimeFormatterBuilder
          - Updated documentation of patterns and corresponding equivalents to builder methods.
          - Added a method to append the localized offset.

      java.time.temporal

      * Adjusters - class removed; all static adjusters moved to static methods in TemporalAdjuster
      * ChronoField -
          - Renamed EPOCH_MONTH to PROLEPTIC_MONTH
          - Added getDisplayName - for local specific field name
      * Queries - class removed; all static query method moved to static methods in TemporalQuery
      * TemporalField - added getDisplayName method
      * UnsupportedTemporalTypeException - new subtype of DateTimeException to reflect no support for a unit or field
      * WeekFields - Added fields for week and year of week-Based-Years to match CLDR fields "Y", "W"

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: