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

daniel.fuchs at oracle.com daniel.fuchs at oracle.com
Mon Mar 2 13:47:57 UTC 2015


Changeset: 7c6d6f1b7a56
Author:    dfuchs
Date:      2015-03-02 14:46 +0100
URL:       http://hg.openjdk.java.net/jdk9/dev/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-dev-changes mailing list