hg: jdk8/tl/jdk: 6708398: Support integer overflow

xueming.shen at oracle.com xueming.shen at oracle.com
Thu Feb 16 11:38:48 PST 2012

Changeset: b971b51bec01
Author:    sherman
Date:      2012-02-16 11:43 -0800
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b971b51bec01

6708398: Support integer overflow
Summary: Added add/sub/multiply/toIntExact methods to j.l.Math and StrictMath classes
Reviewed-by: emcmanus
Contributed-by: roger.riggs at oracle.com

! src/share/classes/java/lang/Math.java
! src/share/classes/java/lang/StrictMath.java
+ test/java/lang/Math/ExactArithTests.java
+ test/java/lang/StrictMath/ExactArithTests.java

More information about the jdk8-changes mailing list