JDK-8032558 : Instant spec includes incorrect assertion wrt valid range
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.time
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-01-23
  • Updated: 2014-07-29
  • Resolved: 2014-02-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u20Fixed 9 b03Fixed
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.