hg: jdk9/sandbox/jdk: 8074032: Instant.ofEpochMilli(millis).toEpochMilli() can throw arithmetic overflow in toEpochMilli()

chris.hegarty at oracle.com chris.hegarty at oracle.com
Mon Mar 2 13:50:32 UTC 2015


Changeset: 7c6d6f1b7a56
Author:    dfuchs
Date:      2015-03-02 14:46 +0100
URL:       http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/7c6d6f1b7a56

8074032: Instant.ofEpochMilli(millis).toEpochMilli() can throw arithmetic overflow in toEpochMilli()
Summary: Instant.toEpochMilli() now takes into account the sign of the 'seconds' field.
Reviewed-by: rriggs, scolebourne

! src/java.base/share/classes/java/time/Instant.java
! test/java/time/test/java/time/TestInstant.java



More information about the jdk9-sandbox-changes mailing list