RFR: 8273369: Computing micros between two instants unexpectedly overflows for some cases [v4]
Roger Riggs
rriggs at openjdk.java.net
Tue Sep 7 21:15:06 UTC 2021
On Tue, 7 Sep 2021 20:29:29 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Please review the fix to the issue. Avoiding overflow by not calling nanosUntil() directly, which will overflow beyond Long.MAX_VALUE difference in nano unit.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>
> Moved the constant to LocalTime for consistency.
Marked as reviewed by rriggs (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5396
More information about the core-libs-dev
mailing list