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

Better return type for TemporalField resolve

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b112
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: