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

remainder with NaN operand(s) is not NaN on win32.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 1.1
    • 1.1
    • hotspot
    • 1.1fcs
    • x86
    • windows_nt
    • Not verified

    Description



      Name: akC45999 Date: 01/13/97



      The Java Virtual Machine, section drem, claims:

        If either value is NaN, the resuly is NaN.

      Meanwhile, following test fails:

      --------------------- drem00101.java
      package javasoft.sqe.tests.vm.drem.drem001.drem00101;


      import java.io.PrintStream;
      import java.lang.Double;


      public class drem00101
      {
      public static void main(String argv[])
      {
      System.exit(run(argv, System.out));
      }

      public static int run(String argv[], PrintStream out)
      {
      double NaN = Double.NaN;
      double d = 3.14;
      double zero = 0.0;

      if (! Double.isNaN(d % NaN))
      return 2;
      else if (! Double.isNaN(NaN % zero))
      return 2;
      else if (! Double.isNaN(NaN % NaN))
      return 2;
      return 0;
      }
      }
      ---------------------

      ======================================================================

      Attachments

        Activity

          People

            sliangsunw Sheng Liang (Inactive)
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: