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

java.lang.Bignum constructor(String,int) works wrong

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description

      This constructos may create an object with incorrect scale:
      ==== Here is the minimized test ====
      class java_lang_Bignum_constructor_1 {
        public static void main(String args[]) {
          System.out.println(new java.lang.Bignum("5e2",5)); //should print 500.00000
          System.out.println(new java.lang.Bignum("test",5)); //should print 0.00000
        }
      }
      ==== Here is the output of the test ====
      500
      0

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: