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

java.util.BitSet(int) doc does not describe behavior with negative bit number

XMLWordPrintable

    • 1.1.1
    • sparc
    • solaris_2.4
    • Not verified

      Documentation for java.util.BitSet class does not describe behavior when you try
      to create a BitSet with a negative number of bits:

      BitSet b = new BitSet( -1 );

      Documentation also does not describe what happens when you try to access
      a negative bit such as:
      int i = b.get( -1 );

            fyellinsunw Frank Yellin (Inactive)
            kasmithsunw Kevin Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: