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.

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/18655d9417eb
            User: plevart
            Date: 2015-06-04 08:59:41 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/18655d9417eb User: plevart Date: 2015-06-04 08:59:41 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/18655d9417eb
            User: lana
            Date: 2015-06-10 21:24:34 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/18655d9417eb User: lana Date: 2015-06-10 21:24:34 +0000

              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: