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

java.lang.Bignum.floatValue(), doubleValue() methods may hang

XMLWordPrintable

    • sparc
    • solaris_2.5

      The following programs hang:
      ==== floatValue ====
      import java.lang.Bignum;
      class java_lang_Bignum_floatValue {
        public static void main(String args[]) {
          Bignum b1=new Bignum("-0.0123456789012345678901234567890123456789");
          System.out.println(b1.floatValue());
        }
      }
      ==== doubleValue ====
      import java.lang.Bignum;
      class java_lang_Bignum_doubleValue {
        public static void main(String args[]) {
          Bignum b1=new Bignum("-0.0123456789012345678901234567890123456789");
          System.out.println(b1.doubleValue());
        }
      }

            mhapnersunw Mark Hapner (Inactive)
            mgorshen Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: