harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (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 08:02:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1379?page=all ]

Paulex Yang resolved HARMONY-1379.
----------------------------------

    Resolution: Fixed

Andrew, patch applied at revision r440290, thanks a lot for this enhancement, please verify
the problem fully resolved as you expected.

> [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
>         Assigned To: Paulex Yang
>         Attachments: Harmony-1379.diff
>
>
> 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