Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 56717 invoked from network); 22 Feb 2006 02:48:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Feb 2006 02:48:10 -0000 Received: (qmail 56938 invoked by uid 500); 22 Feb 2006 02:48:07 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 55736 invoked by uid 500); 22 Feb 2006 02:48:01 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 55713 invoked by uid 99); 22 Feb 2006 02:48:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 18:47:59 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 520FFDD for ; Wed, 22 Feb 2006 03:47:38 +0100 (CET) Message-ID: <563016822.1140576458333.JavaMail.jira@ajax.apache.org> Date: Wed, 22 Feb 2006 03:47:38 +0100 (CET) From: "Richard Liang (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Updated: (HARMONY-113) java.nio.charset.Charset should regard empty charset name properly as Illegal CharsetName In-Reply-To: <467377335.1140575498901.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-113?page=all ] Richard Liang updated HARMONY-113: ---------------------------------- Attachment: charset_patch.txt Please try my patch. Thanks a lot. > java.nio.charset.Charset should regard empty charset name properly as Illegal CharsetName > ----------------------------------------------------------------------------------------- > > Key: HARMONY-113 > URL: http://issues.apache.org/jira/browse/HARMONY-113 > Project: Harmony > Type: Bug > Components: Classlib > Reporter: Richard Liang > Attachments: charset_patch.txt > > I think it's caused by the different between RI 1.4.2 and RI 5.0. Three test cases in JIRA#57 should be updated accordingly. > public void testIsSupported_EmptyString() { > try { > Charset.isSupported(""); > fail("Should throw IllegalCharsetNameException!"); > } catch (IllegalCharsetNameException e) { > // > } > } > public void testConstructor_EmptyCanonicalName() { > try { > new MockCharset("", new String[0]); > fail("Should throw IllegalCharsetNameException!"); > } catch (IllegalCharsetNameException e) { > // > } > } > public void testConstructor_EmptyAliases() { > try { > new MockCharset("mockChar", new String[] { "" }); > fail("Should throw IllegalCharsetNameException!"); > } catch (IllegalCharsetNameException e) { > // > } > } -- 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