The suggestion is to add constants for Duration.MAX equivalent to `Duration.ofSeconds(Long.MAX_VALUE, 999_999_999)'
Suggested in this thread: https://mail.openjdk.org/pipermail/core-libs-dev/2025-September/151098.html
Read all of the thread; there some reservations about use cases.
Suggested in this thread: https://mail.openjdk.org/pipermail/core-libs-dev/2025-September/151098.html
Read all of the thread; there some reservations about use cases.
- blocks
-
JDK-8369120 Leverage new java.time.Duration constants MAX and MIN
-
- Open
-
- csr for
-
JDK-8369241 Add java.time.Duration constants MIN and MAX
-
- Closed
-
- relates to
-
JDK-8368856 Add a method that performs saturating addition of a Duration to an Instant
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/ec13c283
-
Review(master)
openjdk/jdk/27534
(1 links to)