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

StringConverter support for LocalDate/LocalTime/LocalDateTime

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u40
    • Component/s: javafx

      Description

      The three classes javafx.util.converter.[Date|Time|DateTime]StringConverter are based on the legacy types Date and Calendar in java.util, as well as DateFormat in java.text.

      The new java.time API in Java 8 is intended as replacement for those older APIs. JavaFX controls such as DatePicker and the forthcoming Spinner are based on the new java.time API and would benefit from improved StringConverter classes.

      DatePicker currently has a default internal StringConverter<LocalDate> implementation with special logic to ensure symmetry between formatting and parsing. This code should be moved to a class in javafx.util.converter, together with corresponding API for LocalTime and LocalDateTime.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                leifs Leif Samuelsson (Inactive)
                Reporter:
                leifs Leif Samuelsson (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: