harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <g...@pobox.com>
Subject Re: [classlib][String] Request for fixing bug in String(byte[] bytes, int offset, int length, String charsetName)
Date Fri, 11 Aug 2006 13:09:39 GMT
Never worry if there will be an objection to you raising a JIRA and
providing a patch.    Just Do It!

:)

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


Mime
View raw message