RFR: 8366829: Add constants for the Duration MIN/MAX values
Naoto Sato
naoto at openjdk.org
Mon Sep 29 16:21:08 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
LGTM too. I think we can put some takeaways from the discussion into the javadoc as `@apiNote`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27534#issuecomment-3347921682
More information about the core-libs-dev
mailing list