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

Wrong behavior of LocalDateTimeStringConverter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx17
    • jfx15
    • javafx
    • None

      The class uses an internal LdtConverter helper class that instantiates all its fields, but they are not final. In its toString method, the chronology field is reassigned if the formatting fails on that specific value. Then, if another value is passed in, the new chronology field value is used, which could give different results from having it been passed in first.
      Note that this internal class is used by LocalDate and LocalTime converters as well.

            nlisker Nir Lisker
            nlisker Nir Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: