Re: RFR: 8273369: Computing micros between two instants unexpectedly overflows for some cases [v2]

2021-09-07 Thread Naoto Sato
On Tue, 7 Sep 2021 18:46:56 GMT, Roger Riggs wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Added a constant for nanos per micro. > > src/java.base/share/classes/java/time/Instant.java line 1170: > >> 1168:

Re: RFR: 8273369: Computing micros between two instants unexpectedly overflows for some cases [v2]

2021-09-07 Thread Naoto Sato
> 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: Added a constant for