Sorry, I had some email problems recently.
On Monday 16 July 2007 16:35, Matthew Toseland wrote:
> On Thursday 12 July 2007 13:19, bbackde at googlemail.com wrote:
> > Slightly off topic question: why don't you use the existing
> > java.util.BitSet? This seems to work for me in Frost.
>
> IIRC we needed some extra methods. Somebody should check into this.
>
> > On 7/12/07, Sback <sback at sback.it> wrote:
> > > When I try to set a bit in a place bigger than the BitArray size,
> > > sometimes it does not raise an ArrayIndexOutOfBoundsException. It seems
> > > that the problem is present when the BitArray size is not a multiple of
> > > 8. IMHO the exception should be raised in each wrong case.
> > >
> > > Here you are the test code (you can find it in the trunk too):
> > >
> > > /**
> > > * Tests setBit(int,boolean) method
> > > * trying to set a bit out of bounds
> > > */
> > > public void testSetBit_OutOfBounds() {
> > > BitArray methodBitArray = new BitArray(10);
> > > try {
> > > methodBitArray.setBit(10,true);
> > > fail("Expected Exception Error Not Thrown!");}
> > > catch (ArrayIndexOutOfBoundsException anException) {
> > > assertNotNull(anException); }
> > > }
> > >
> > > Thank you,
> > >
> > > Sback
> > >
> > > _______________________________________________
> > > Devl mailing list
> > > Devl at freenetproject.org
> > > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20070717/f7df7931/attachment.pgp>