Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5050978

source code for java.lang.Math shows it is strictfp

XMLWordPrintable

    • b57
    • x86
    • windows_xp



      Name: js151677 Date: 05/21/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Win XP - but this is not relevant

      A DESCRIPTION OF THE PROBLEM :
      The Javadoc for java.lang.Math says
      "Unlike some of the numeric methods of class StrictMath, all implementations of the equivalent functions of class Math are not defined to return the bit-for-bit same results. "

      However, the source file for java.lang.Math starts like this:
      public final strictfp class Math {

      and the source file for StrictMath starts like this:
      public final class StrictMath {

      I.e. the strictfp modifier is applied to the wrong class. Or the javadoc is wrong.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      read the code

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      expected javadoc and source to be in agreement
      ACTUAL -
      code and javadoc contradict each other

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :

      (Incident Review ID: 270591)
      ======================================================================

            darcy Joe Darcy
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: