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

Wrong behavior of LocalDateTimeStringConverter

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: