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

java.time.DateTimeFormatter can't parse years with '+' sign

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • core-libs
    • None
    • 8

      The original bug against DatePicker in FX: https://javafx-jira.kenai.com/browse/RT-35599

      Copied from the evaluation:
      The representation of a year value with more than four digits is preceded by a "+" sign, as required by the ISO standard: https://en.wikipedia.org/wiki/ISO_8601#Years

      However, I am not sure if this standard should apply when formatting dates in a locale such as en_US, which does not otherwise use the ISO-6801 formats.

      The error printed by HelloDatePicker is caused by the failure of java.time.DateTimeFormatter to (leniently) parse the "+yyyyy" year that it so happily generated.

            naoto Naoto Sato
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: