Marcus Crafter wrote:
> Hi All,
>
> There's currently a couple of bugs in FixedSizeBuffer. The current code
> can't correctly ascertain the size of the buffer so it allows one to
> fill it indefinitely overwriting occupied cells. It also creates a
> buffer array 1 element too big (combined with the previous
> problem allowing the buffer to hold in memory one object too many).
>
> Attached is a patch to fix both problems.
>
> Cheers,
>
> Marcus
>
> BTW - is FixedSizeBuffer allowed to hold null elements, as this
> case seems to be broken as well ? (remove() won't remove null
> items, but add() will store them).
No, it should not hold null elements.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>