On 8/7/07, Geoff Cadien <[EMAIL PROTECTED]> wrote:
> I've run into a bug in DefaultFileRegion. In the method
>
> public void setPosition(long value) {
> if (value < position) {
> throw new IllegalArgumentException("New position value may not
> be less than old position value");
> }
> count += value - position;
> position = value;
> }
>
> I believe it should be
>
> count -= value - position;
>
> instead.
>
> Also, SocketIoProcessor#clearWriteRequestQueue the WriteRequest message is
> cast to a ByteBuffer, which will fail if the message is a DefaultFileRegion.
>
> I would be happy to enter the two bugs in Jira if thats the correct
> procedure.
Thanks! I've just checked in the changes you suggested. Please let
me know if it fixes the problem.
Thanks,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6