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
-
- Finalized
-
- relates to
-
JDK-8366829 Add java.time.Duration constants MIN and MAX
-
- Resolved
-
- links to
-
Review(master) openjdk/jdk/27549