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

Instant spec includes incorrect assertion wrt valid range

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • None
    • 8
    • b03

        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.

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

                Created:
                Updated:
                Resolved: