harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Liang <richard.lian...@gmail.com>
Subject [classlib][String] Request for fixing bug in String(byte[] bytes, int offset, int length, String charsetName)
Date Fri, 11 Aug 2006 06:24:11 GMT
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 

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


Richard Liang
China Software Development Lab, IBM 

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

View raw message