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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b05
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: