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

java.math.BigInteger testing error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • sparc
    • solaris_7

      >By chance I found a case where one of your tests in incorrect. In
      >divideAndRemainder you have:
      >
      > BigInteger z = x.divide(BigInteger.valueOf(2L));
      > y = x.divideAndRemainder(z);
      > if (!y[0].equals(BigInteger.valueOf(2))) {
      > failCount1++;
      >
      >However this test will fail if x == 3 (and only if x == 3)

            mmcclosksunw Michael Mccloskey (Inactive)
            mmcclosksunw Michael Mccloskey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: