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

ZoneOffsetTransitionRule.of should throw IAE for non-zero nanoseconds

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b68

      Backports

        Description

        The constructors in java.time.zone.ZoneOffsetTransition accept a LocalDateTime as the argument.
        However, the timezone database and the related mechanisms only allow offsets to the second.
        The sub-second (nano) value should be explicitly specified as being ignored.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: