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

Wrong behavior of LocalDateTimeStringConverter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjfx15
    • Fix Version/s: openjfx17
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:

      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

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

                Dates

                Created:
                Updated:
                Resolved: