RFR: 8307466: java.time.Instant calculation bug in until and between methods
Stephen Colebourne
scolebourne at openjdk.org
Sat May 6 06:58:13 UTC 2023
On Fri, 5 May 2023 21:28:25 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> 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.
> The errant computation was introduced by [JDK-8273369](https://bugs.openjdk.org/browse/JDK-8273369).
Marked as reviewed by scolebourne (Author).
-------------
PR Review: https://git.openjdk.org/jdk/pull/13846#pullrequestreview-1415731468
More information about the core-libs-dev
mailing list