> 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
Pavel Rappo has updated the pull request with a new target base due to a merge
or a rebase. The incremental webrev excludes the unrelated changes brought in
by the merge/rebase. The pull request contains five additional commits since
the last revision:
- Merge remote-tracking branch 'jdk/master' into 8366829
- Respond to feedback
Apply Stephen's suggestion on wording, although modified.
- Update copyright years
Note: any commit hashes below might be outdated due to subsequent
history rewriting (e.g. git rebase).
+ update src/java.base/share/classes/java/time/temporal/ChronoUnit.java due
to 9a54ba1d353
+ update test/jdk/java/time/tck/java/time/TCKDuration.java due to
9a54ba1d353
- Provide @apiNote as suggested
- Initial commit
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27534/files
- new: https://git.openjdk.org/jdk/pull/27534/files/abe01ff5..9472772a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27534&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27534&range=02-03
Stats: 44025 lines in 1299 files changed: 26033 ins; 11350 del; 6642 mod
Patch: https://git.openjdk.org/jdk/pull/27534.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27534/head:pull/27534
PR: https://git.openjdk.org/jdk/pull/27534