--- old/test/java/lang/Math/HyperbolicTests.java 2014-08-19 20:24:08.000000000 +0800 +++ new/test/java/lang/Math/HyperbolicTests.java 2014-08-19 20:24:08.000000000 +0800 @@ -28,8 +28,6 @@ * @author Joseph D. Darcy */ -import sun.misc.DoubleConsts; - public class HyperbolicTests { private HyperbolicTests(){} @@ -264,7 +262,7 @@ // rounded away since |n-n^3| > 53, the binary precision of a // double significand. - for(int i = DoubleConsts.MIN_SUB_EXPONENT; i < -27; i++) { + for(int i = DoubleUtils.MIN_SUB_EXPONENT; i < -27; i++) { double d = Math.scalb(2.0, i); // Result and expected are the same. @@ -342,7 +340,7 @@ // sinh(x) overflows for values greater than 710; in // particular, it overflows for all 2^i, i > 10. - for(int i = 10; i <= DoubleConsts.MAX_EXPONENT; i++) { + for(int i = 10; i <= Double.MAX_EXPONENT; i++) { double d = Math.scalb(2.0, i); // Result and expected are the same. @@ -623,7 +621,7 @@ // subsequent terms of the Taylor series expansion will get // rounded. - for(int i = DoubleConsts.MIN_SUB_EXPONENT; i < -27; i++) { + for(int i = DoubleUtils.MIN_SUB_EXPONENT; i < -27; i++) { double d = Math.scalb(2.0, i); // Result and expected are the same. @@ -701,7 +699,7 @@ // cosh(x) overflows for values greater than 710; in // particular, it overflows for all 2^i, i > 10. - for(int i = 10; i <= DoubleConsts.MAX_EXPONENT; i++) { + for(int i = 10; i <= Double.MAX_EXPONENT; i++) { double d = Math.scalb(2.0, i); // Result and expected are the same. @@ -982,7 +980,7 @@ // rounded away since |n-n^3| > 53, the binary precision of a // double significand. - for(int i = DoubleConsts.MIN_SUB_EXPONENT; i < -27; i++) { + for(int i = DoubleUtils.MIN_SUB_EXPONENT; i < -27; i++) { double d = Math.scalb(2.0, i); // Result and expected are the same. @@ -996,7 +994,7 @@ failures += testTanhCaseWithUlpDiff(i, 1.0, 2.5); } - for(int i = 5; i <= DoubleConsts.MAX_EXPONENT; i++) { + for(int i = 5; i <= Double.MAX_EXPONENT; i++) { double d = Math.scalb(2.0, i); failures += testTanhCaseWithUlpDiff(d, 1.0, 2.5);