mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "peter royal (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-296) ByteBuffer.limit() incorrect when CharacterCodingException() occurred
Date Fri, 27 Oct 2006 15:02:17 GMT
    [ http://issues.apache.org/jira/browse/DIRMINA-296?page=comments#action_12445205 ] 
peter royal commented on DIRMINA-296:

You are correct. Care to create a unit test that illustrates the problem and patch to fix
it? :)

> ByteBuffer.limit() incorrect when CharacterCodingException() occurred
> ---------------------------------------------------------------------
>                 Key: DIRMINA-296
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-296
>             Project: Directory MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0
>         Environment: Window/Unix
>            Reporter: Phan Thanh Hieu
>         Attachments: bytebuffer.jpg
> ByteBuffer.limit() is INCORRECT when CharacterCodingException occurred.
> Information: my app just support ASCII-character messages. So when receiving non-ASCII
message => CharacterCodingException occurrec and my expected action: save the raw-data
into a Error file but the limit of the ByteBuffer is changed so i could not save whole raw
data to this kind of file.
> I have reviewed the getString() method of MINA ByteBuffer. I could found the problem,
please see the attachment.
> Thanks, Hieu Phan.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message