--- old/src/java.base/share/classes/jdk/internal/math/FloatingDecimal.java 2016-02-15 22:07:10.174403738 -0800 +++ new/src/java.base/share/classes/jdk/internal/math/FloatingDecimal.java 2016-02-15 22:07:10.022327733 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -2377,8 +2377,8 @@ // Float calculations int floatBits = isNegative ? FloatConsts.SIGN_BIT_MASK : 0; - if (exponent >= FloatConsts.MIN_EXPONENT) { - if (exponent > FloatConsts.MAX_EXPONENT) { + if (exponent >= Float.MIN_EXPONENT) { + if (exponent > Float.MAX_EXPONENT) { // Float.POSITIVE_INFINITY floatBits |= FloatConsts.EXP_BIT_MASK; } else { @@ -2409,12 +2409,12 @@ float fValue = Float.intBitsToFloat(floatBits); // Check for overflow and update exponent accordingly. - if (exponent > DoubleConsts.MAX_EXPONENT) { // Infinite result + if (exponent > Double.MAX_EXPONENT) { // Infinite result // overflow to properly signed infinity return isNegative ? A2BC_NEGATIVE_INFINITY : A2BC_POSITIVE_INFINITY; } else { // Finite return value - if (exponent <= DoubleConsts.MAX_EXPONENT && // (Usually) normal result - exponent >= DoubleConsts.MIN_EXPONENT) { + if (exponent <= Double.MAX_EXPONENT && // (Usually) normal result + exponent >= Double.MIN_EXPONENT) { // The result returned in this block cannot be a // zero or subnormal; however after the @@ -2434,7 +2434,7 @@ (DoubleConsts.SIGNIF_BIT_MASK & significand); } else { // Subnormal or zero - // (exponent < DoubleConsts.MIN_EXPONENT) + // (exponent < Double.MIN_EXPONENT) if (exponent < (DoubleConsts.MIN_SUB_EXPONENT - 1)) { // No way to round back to nonzero value @@ -2474,7 +2474,7 @@ // Now, discard the bits significand = significand >> bitsDiscarded; - significand = ((((long) (DoubleConsts.MIN_EXPONENT - 1) + // subnorm exp. + significand = ((((long) (Double.MIN_EXPONENT - 1) + // subnorm exp. (long) DoubleConsts.EXP_BIAS) << (DoubleConsts.SIGNIFICAND_WIDTH - 1)) & DoubleConsts.EXP_BIT_MASK) |