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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 10
    • Affects Version/s: 10
    • Component/s: core-libs
    • None
    • b36
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: