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

ivan.gerasimov at oracle.com ivan.gerasimov at oracle.com
Sat Aug 8 00:25:04 UTC 2015


Changeset: 492f4fb4a130
Author:    igerasim
Date:      2015-08-08 03:23 +0300
URL:       http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/492f4fb4a130

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/share/classes/java/time/Instant.java
! test/java/time/test/java/time/TestInstant.java



More information about the jdk8u-dev-changes mailing list