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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]