On Fri, 26 Sep 2025 23:06:36 GMT, Pavel Rappo <[email protected]> wrote:
> We have [recently discussed][] a possibility of adding the `Duration.MIN` and > `Duration.MAX` constants. Can we now start implementation? If and when we are > in agreement on this PR, I will file a CSR. > > I drafted a minimal specification and added some tests. I tried to phrase the > spec for `Duration.MIN` in a way that makes it clear that `Duration.MIN` is > the most negative value and not the least positive. > > [recently discussed]: > https://mail.openjdk.org/pipermail/core-libs-dev/2025-September/151098.html This pull request has now been integrated. Changeset: ec13c283 Author: Pavel Rappo <[email protected]> URL: https://git.openjdk.org/jdk/commit/ec13c283c48c37e80d6c9c2753b09b31f4d14734 Stats: 76 lines in 3 files changed: 71 ins; 1 del; 4 mod 8366829: Add java.time.Duration constants MIN and MAX Reviewed-by: rriggs, naoto, scolebourne ------------- PR: https://git.openjdk.org/jdk/pull/27534
