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

Better return type for TemporalField resolve

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • 8
    • b112
    • Verified

    Description

      TemporalField.resolve() currently returns ChronoLocalDate, which is limiting and ties the temporal API more closely to the chrono API than necessary.

      Return TemporalAccessor instead and handle a few more ChronoLocalDate, ChronoLocalDateTime, ChronoZonedDateTime, and LocalTime.

      See JSR 310 issue 336: https://github.com/ThreeTen/threeten/issues/336

      Attachments

        Activity

          People

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: