You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2014/09/02 09:21:20 UTC
[jira] [Commented] (DIRMINA-981) IoBuffer GetSlice throw an
IllegalArgumentException
[ https://issues.apache.org/jira/browse/DIRMINA-981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14117976#comment-14117976 ]
Emmanuel Lecharny commented on DIRMINA-981:
-------------------------------------------
Good catch !
There is a bug in the getSlice() method : we try to set the position before setting the limit, which leads to an error if the buffer was not flipped before we do a getSlice()
> IoBuffer GetSlice throw an IllegalArgumentException
> ---------------------------------------------------
>
> Key: DIRMINA-981
> URL: https://issues.apache.org/jira/browse/DIRMINA-981
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.7
> Reporter: Jeremy
> Fix For: 2.0.8
>
>
> Calling IoBuffer.Getslice(1,3) on a iobuffer with 36 element call an IllegalArgumentException for the function Buffer position(int newPosition)
> called at position(pos);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)