[JBoss JIRA] Created: (NETTY-254) ChannelBuffer.setIndex() fails with a dynamic buffer
Trustin Lee (JIRA)
jira-events at lists.jboss.org
Wed Nov 18 11:34:30 EST 2009
ChannelBuffer.setIndex() fails with a dynamic buffer
-----------------------------------------------------
Key: NETTY-254
URL: https://jira.jboss.org/jira/browse/NETTY-254
Project: Netty
Issue Type: Bug
Components: Buffer
Reporter: Trustin Lee
Assignee: Trustin Lee
Fix For: 3.2.0.ALPHA2
The following code fails with IndexOutOfBoundsException:
ChannelBuffer buf = ChannelBufers.dynamicBuffer(1500);
buf.setIndex(0, 1000);
where it should not fail.
I'm not sure setIndex() should increase the capacity yet, but at least it should not fail when there's no need for capacity increment.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the netty-dev
mailing list