harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1379) [classlib][nio_char] CharsetEncoder.encode(CharBuffer in) doesn't throw expected MalformedInputException when encodeLoop returns malformed coder result and report flag is enabled.
Date Tue, 05 Sep 2006 02:59:22 GMT
[classlib][nio_char]  CharsetEncoder.encode(CharBuffer in) doesn't throw expected MalformedInputException
when encodeLoop returns malformed coder result and report flag is enabled.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-1379
                 URL: http://issues.apache.org/jira/browse/HARMONY-1379
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Andrew Zhang


CharsetEncoderTest.testEncodeCharBufferException() reproduces the bug.  
in = getMalformedCharBuffer();
encoder.onMalformedInput(CodingErrorAction.REPORT);
encoder.onUnmappableCharacter(CodingErrorAction.REPORT);
...
try {
	encoder.encode(in);
	fail("should throw MalformedInputException");
} catch (MalformedInputException e) {

}


Now CharsetEncoderTest is in the excluded list. 
I'll upload a patch to fix this problem. 

Best regards,
Andrew

-- 
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