[jdk20u] RFR: 8307466: java.time.Instant calculation bug in until and between methods
Roger Riggs
rriggs at openjdk.org
Thu May 11 18:06:36 UTC 2023
Backport the fix for [JDK-8307466](https://bugs.openjdk.org/browse/JDK-8307466) from openjdk/jdk.
The implementation of java.time.Instant.until(I2, ChronoUnit) in some cases did not correctly borrow or carry from the nanos to the seconds when computing using ChronoUnit.MILLIS or ChronoUnit.MICROS.
-------------
Commit messages:
- Backport 356667f1559396b09e0b830d92978f2ea7a9300b
Changes: https://git.openjdk.org/jdk20u/pull/78/files
Webrev: https://webrevs.openjdk.org/?repo=jdk20u&pr=78&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8307466
Stats: 78 lines in 2 files changed: 70 ins; 0 del; 8 mod
Patch: https://git.openjdk.org/jdk20u/pull/78.diff
Fetch: git fetch https://git.openjdk.org/jdk20u.git pull/78/head:pull/78
PR: https://git.openjdk.org/jdk20u/pull/78
More information about the jdk-updates-dev
mailing list