[jdk20u] RFR: 8307466: java.time.Instant calculation bug in until and between methods

Naoto Sato naoto at openjdk.org
Thu May 11 22:23:15 UTC 2023


On Thu, 11 May 2023 17:58:24 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> 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.

Marked as reviewed by naoto (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk20u/pull/78#pullrequestreview-1423524426


More information about the jdk-updates-dev mailing list