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

BigInteger.bitLength() should explicitly specify behavior when the value is zero

XMLWordPrintable

    • b05
    • Not verified

      BigInteger.bitLength() should state explicitly that 0 will be returned when the BigInteger's value is zero. This is already specified by the pseudo-code in the method documentation, but not verbally as is done for example for the analogous method java.util.BitSet.length(). Equivalent methods are thus explicitly specified in other programming languages.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: