JDK-7123649 : Remove public modifier from Math.powerOfTwoF
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-12-21
  • Updated: 2012-05-17
  • Resolved: 2012-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b23Fixed
Related Reports
Relates :  
Description
The fix for 7091682: "Move sun.misc.FpUtils code into java.lang.Math" inadvertently introduced an extra public method in java.lang.Math, powerOfTwoF.  The public modifier should be removed so that the method remains available for internal usage.

Comments
SUGGESTED FIX # HG changeset patch # User darcy # Date 1325904463 28800 # Node ID 2050ff9dfc92278efccbde667ee5a84892d78433 # Parent 6720ae7b14488db552aad486af1e75822de0eced 7123649: Remove public modifier from Math.powerOfTwoF. Reviewed-by: smarks, alanb --- a/src/share/classes/java/lang/Math.java Fri Jan 06 16:06:41 2012 -0800 +++ b/src/share/classes/java/lang/Math.java Fri Jan 06 18:47:43 2012 -0800 @@ -1900,7 +1900,7 @@ public final class Math { /** * Returns a floating-point power of two in the normal range. */ - public static float powerOfTwoF(int n) { + static float powerOfTwoF(int n) { assert(n >= FloatConsts.MIN_EXPONENT && n <= FloatConsts.MAX_EXPONENT); return Float.intBitsToFloat(((n + FloatConsts.EXP_BIAS) << (FloatConsts.SIGNIFICAND_WIDTH-1))
07-01-2012

PUBLIC COMMENTS See http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2050ff9dfc92
07-01-2012

EVALUATION Should be fixed.
21-12-2011