You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vladimir Strigun (JIRA)" <ji...@apache.org> on 2006/04/25 16:41:06 UTC
[jira] Commented: (HARMONY-410) method decode(ByteBuffer,
CharBuffer, boolean) should set correct position in ByteBuffer
[ http://issues.apache.org/jira/browse/HARMONY-410?page=comments#action_12376273 ]
Vladimir Strigun commented on HARMONY-410:
------------------------------------------
The following test failed on Harmony:
public void testDecode_CharBuffer_ByteBuffer_boolean() {
byte[] arr = {-31, -96, -86, -32};
ByteBuffer bb = ByteBuffer.wrap(arr);
CharBuffer cb = CharBuffer.allocate(2);
CharsetDecoder decoder = Charset.forName("UTF-8").newDecoder();
decoder.decode(bb, cb, false);
assertTrue("remaining() in ByteBuffer is incorrect", bb.remaining() == 1);
}
I'm going to attach patch for tests.api.java.nio.charset.CharsetDecoderTest
> method decode(ByteBuffer, CharBuffer, boolean) should set correct position in ByteBuffer
> ----------------------------------------------------------------------------------------
>
> Key: HARMONY-410
> URL: http://issues.apache.org/jira/browse/HARMONY-410
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Vladimir Strigun
> Priority: Minor
>
> When ByteBuffer contain incomplete sequence of bytes for successful decoding, position in ByteBuffer should be set to latest successful byte. I will attach testcase and patch soon.
--
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