test/java/lang/Math/Log1pTests.java

Print this page

        

@@ -26,12 +26,10 @@
  * @bug 4851638 4939441
  * @summary Tests for {Math, StrictMath}.log1p
  * @author Joseph D. Darcy
  */
 
-import sun.misc.DoubleConsts;
-
 public class Log1pTests {
     private Log1pTests(){}
 
     static final double infinityD = Double.POSITIVE_INFINITY;
     static final double NaNd = Double.NaN;

@@ -91,11 +89,11 @@
             failures += testLog1pCase(d, d);
             failures += testLog1pCase(-d, -d);
         }
 
         // For x > 2^53 log1p(x) ~= log(x)
-        for(int i = 53; i <= DoubleConsts.MAX_EXPONENT; i++) {
+        for(int i = 53; i <= Double.MAX_EXPONENT; i++) {
             double d = Math.scalb(2, i);
             failures += testLog1pCaseWithUlpDiff(d, StrictMath.log(d), 2.001);
         }
 
         // Construct random values with exponents ranging from -53 to