RFR: 8366829: Add constants for the Duration MIN/MAX values
Alan Bateman
alanb at openjdk.org
Sat Sep 27 13:20:15 UTC 2025
On Fri, 26 Sep 2025 23:06:36 GMT, Pavel Rappo <prappo at openjdk.org> 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
I've added the "csr" label as it will need a CSR to track this once there is agreement on the change/spec.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27534#issuecomment-3341704602
More information about the core-libs-dev
mailing list