harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Strigun (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-410) method decode(ByteBuffer, CharBuffer, boolean) should set correct position in ByteBuffer
Date Tue, 25 Apr 2006 14:41:06 GMT
    [ 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


Mime
View raw message