You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Markov (JIRA)" <ji...@apache.org> on 2007/01/29 12:29:49 UTC
[jira] Commented: (HARMONY-2423) [classlib][nio_char]
tests/api/java/nio/charset/CharsetEncoderTests fail with malformed-input
error
[ https://issues.apache.org/jira/browse/HARMONY-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468241 ]
Mikhail Markov commented on HARMONY-2423:
-----------------------------------------
i've checked the latest classlib revision and found that 4 of mentioned excluded tests are passing now and could be included again (i've checked both on WinXP & Linux):
tests/api/java/nio/charset/ASCCharsetEncoderTest.java
tests/api/java/nio/charset/GBCharsetEncoderTest.java
tests/api/java/nio/charset/ISOCharsetEncoderTest.java
tests/api/java/nio/charset/UTFCharsetEncoderTest.java
> [classlib][nio_char] tests/api/java/nio/charset/CharsetEncoderTests fail with malformed-input error
> ---------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2423
> URL: https://issues.apache.org/jira/browse/HARMONY-2423
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Artem Aliev
>
> unitHarmony_tests_api_java_nio_charset_ASCCharsetEncoderTest
> unitHarmony_tests_api_java_nio_charset_GBCharsetEncoderTest
> unitHarmony_tests_api_java_nio_charset_ISOCharsetEncoderTest
> unitHarmony_tests_api_java_nio_charset_UTF16BECharsetEncoderTest
> unitHarmony_tests_api_java_nio_charset_UTF16CharsetEncoderTest
> unitHarmony_tests_api_java_nio_charset_UTF16LECharsetEncoderTest
> unitHarmony_tests_api_java_nio_charset_UTFCharsetEncoderTest
> These tests fail on all platform with malformed-input error
> Code for reproducing:
> import java.nio.*;
> import java.nio.charset.*;
> public class Test extends junit.framework.TestCase {
> public void testAAA() {
> try {
> CharsetEncoder encoder = Charset.forName("iso-8859-1").newEncoder();
> ByteBuffer out = ByteBuffer.allocate(10);
> assertSame(CoderResult.UNDERFLOW, encoder.encode(CharBuffer
> .wrap("\ud800"), out, false));
> assertTrue(encoder.encode(CharBuffer.wrap("\udc00"),
> out,true).isMalformed());
> System.out.println(encoder.encode(CharBuffer.wrap("\udc00"), out,
> true).toString());
> }catch(Exception e){
> e.printStackTrace();
> }
> }
> }
> Output:
> On RI
> .MALFORMED[1]
> Time: 0.031
> OK (1 test)
> On Harmony
> .F
> Time: 0.016
> There was 1 failure:
> 1) testAAA(Test)junit.framework.AssertionFailedError: null
> at Test.testAAA(Test.java:31)
> at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1, Failures: 1, Errors: 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.