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

Add java.time.format.DateTimeFormatter localizedBy(locale) method to reflect Unicode extensions

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b36
    • CPU:
      generic
    • OS:
      generic

      Description

      The spec change approved by the CSR JDK-8186697 had compatibility issues such as withXXX() methods would no longer be independent of the issuing order, e.g.,

       formatter = formatter.withZone(zone).withLocale(locale);
       formatter = formatter.withLocale(locale).withZone(zone);

      would generate different formatter instances. To resolve this incompatibility, instead of augmenting the existing methods, introduce a new method that will replace the locale related fields in the formatter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                naoto Naoto Sato
                Reporter:
                naoto Naoto Sato
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: