BitSet and negative arguments
Mark Wielaard
mark@klomp.org
Mon Apr 1 05:00:00 GMT 2002
Hi,
The following was also found by inspecting the Mauve output.
We did not always throw an IndexOutOfBoundException when an argument was
negative.
2002-04-01 Mark Wielaard <mark@klomp.org>
* java/util/BitSet.java (BitSet(int)): if nbits < 0 throw
NegativeArraySizeException
(clear(int)): Use sign extended shift.
(flip(int)): Likewise.
(get(int)): Likewise.
(nextClearBit(int)): Likewise.
(nextSetBit(int)): Likewise.
(set(int)): Likewise.
Ok to commit? Eric may want to take a look at it since I think he wrote
the original code.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitSet.patch
Type: text/x-patch
Size: 1946 bytes
Desc:
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020401/ca06035f/attachment.bin>
More information about the Java-patches
mailing list