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

Instant spec includes incorrect assertion wrt valid range

    XMLWordPrintable

    Details

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

      Backports

        Description

        The valid range of values in a java.time.Instant was reduced during development, but the corresponding spec comment was not removed. Unfortunately, the comment is towards the top of the class Javadoc thus making its removal now highly desirable.

        The paragraph "For practicality, the instant is stored with some constraints. The measurable time-line is restricted to the number of seconds that can be held in a long. This is greater than the current estimated age of the universe. The instant is stored to nanosecond resolution. " should be removed in its entirity.

        Identified by Douglas Surber by email.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: