Integrated: 8307466: java.time.Instant calculation bug in until and between methods
Roger Riggs
rriggs at openjdk.org
Tue May 9 20:54:34 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).
This pull request has now been integrated.
Changeset: 356667f1
Author: Roger Riggs <rriggs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/356667f1559396b09e0b830d92978f2ea7a9300b
Stats: 78 lines in 2 files changed: 70 ins; 0 del; 8 mod
8307466: java.time.Instant calculation bug in until and between methods
Co-authored-by: Raffaello Giulietti <rgiulietti at openjdk.org>
Reviewed-by: scolebourne, naoto
-------------
PR: https://git.openjdk.org/jdk/pull/13846
More information about the core-libs-dev
mailing list