Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 33100 invoked from network); 27 Feb 2006 10:53:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Feb 2006 10:53:42 -0000 Received: (qmail 10428 invoked by uid 500); 27 Feb 2006 10:52:22 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 10118 invoked by uid 500); 27 Feb 2006 10:52:20 -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 10028 invoked by uid 99); 27 Feb 2006 10:52:20 -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; Mon, 27 Feb 2006 02:52:20 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 12FD7182 for ; Mon, 27 Feb 2006 11:51:59 +0100 (CET) Message-ID: <1371232624.1141037519075.JavaMail.jira@ajax.apache.org> Date: Mon, 27 Feb 2006 11:51:59 +0100 (CET) From: "Tim Ellison (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Closed: (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 ] Tim Ellison closed HARMONY-113: ------------------------------- Verified by Richard > 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 > Assignee: Tim Ellison > 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