JDK-8260468 : Wrong behavior of LocalDateTimeStringConverter
  • Type: Bug
  • Component: javafx
  • Sub-Component: base
  • Affected Version: openjfx15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-01-26
  • Updated: 2021-02-23
  • Resolved: 2021-02-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx17Fixed
Related Reports
Blocks :  
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.
Comments
Changeset: e25d39b0 Author: Nir Lisker <nlisker@openjdk.org> Date: 2021-02-23 18:02:19 +0000 URL: https://git.openjdk.java.net/jfx/commit/e25d39b0
23-02-2021