(spec) BitSet.nextClearBit missing spec for case when index is outside int range

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • None
    • Affects Version/s: 1.2.1, 1.4.1
    • Component/s: core-libs
    • Fix Understood
    • x86, sparc
    • solaris_7, windows_xp



      Name: rmT116609 Date: 02/10/2003


      DESCRIPTION OF THE PROBLEM :
      The java doc for java.util.BitSet's nextClearBit doesn't include the case where there is no nextClearBit. Recall that in Java, int's are finite. Presumably, the behavior is like nextSetBit and returns -1 in that case.

      This bug was found in writing a JML specification for the method.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Open your browser on the javadoc for java.util.BitSet
      2. Look at the nextClearBit method's description.
      3. Compare to the description for nextSetBit.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 181012)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: