harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Liang <richard.lian...@gmail.com>
Subject Re: [classlib][String] Request for fixing bug in String(byte[] bytes, int offset, int length, String charsetName)
Date Mon, 14 Aug 2006 02:03:38 GMT


Geir Magnusson Jr wrote:
> Never worry if there will be an objection to you raising a JIRA and
> providing a patch.    Just Do It!
>
>   
Thanks  a lot, Geir.

HARMONY-1157 was raised. And Tim had applied my patch.


Best regards,
Richard
> :)
>
> geir
>
>
> Richard Liang wrote:
>   
>> Hello All,
>>
>> The constructor "String(byte[] bytes, int offset, int length, String
>> charsetName)" has the same bug as Harmony-487[1]. When the charsetName
>> is "", RI throws UnsupportedEncodingException, but Harmony throws
>> IllegalCharsetNameException.
>>
>> If there is no objection, I will raise a JIRA and provide a patch for
>> this issue. Thanks a lot.
>>
>> The following test passes on RI, but fails on Harmony:
>>        try {
>>            String str = new String(new byte[] {0x41, 0x42}, 0, 2, "");
>>            fail("Should throw UnsupportedEncodingException");
>>        } catch (UnsupportedEncodingException e) {
>>            //expected
>>        }
>>
>> [1]http://issues.apache.org/jira/browse/HARMONY-487
>>
>>     
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
>   

-- 
Richard Liang
China Software Development Lab, IBM 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message