--- old/src/share/classes/java/util/Formatter.java 2011-09-18 18:12:56.000000000 -0700 +++ new/src/share/classes/java/util/Formatter.java 2011-09-18 18:12:55.000000000 -0700 @@ -3423,18 +3423,18 @@ else { assert(prec >= 1 && prec <= 12); - int exponent = FpUtils.getExponent(d); + int exponent = Math.getExponent(d); boolean subnormal = (exponent == DoubleConsts.MIN_EXPONENT - 1); // If this is subnormal input so normalize (could be faster to // do as integer operation). if (subnormal) { - scaleUp = FpUtils.scalb(1.0, 54); + scaleUp = Math.scalb(1.0, 54); d *= scaleUp; // Calculate the exponent. This is not just exponent + 54 // since the former is not the normalized exponent. - exponent = FpUtils.getExponent(d); + exponent = Math.getExponent(d); assert exponent >= DoubleConsts.MIN_EXPONENT && exponent <= DoubleConsts.MAX_EXPONENT: exponent; }