-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 25
-
Component/s: core-libs
-
b22
Instant arithmetic is used to calculate deadlines. However, if the programmer is not careful, it easily exceeds Instant or overflows long edge values. It might be useful to add a method that calculates a deadline safely.
- csr for
-
JDK-8369908 Add a method that performs saturating addition of a Duration to an Instant
-
- Closed
-
- relates to
-
JDK-8366829 Add java.time.Duration constants MIN and MAX
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/2758c6fd
-
Review(master)
openjdk/jdk/27549