Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 47821 invoked from network); 4 Sep 2006 08:01:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2006 08:01:54 -0000 Received: (qmail 55608 invoked by uid 500); 4 Sep 2006 08:01:53 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 55568 invoked by uid 500); 4 Sep 2006 08:01:53 -0000 Mailing-List: contact harmony-commits-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-commits@incubator.apache.org Received: (qmail 55557 invoked by uid 99); 4 Sep 2006 08:01:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 01:01:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 01:01:53 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 21CAC7142FE for ; Mon, 4 Sep 2006 07:58:26 +0000 (GMT) Message-ID: <1381788.1157356706136.JavaMail.jira@brutus> Date: Mon, 4 Sep 2006 00:58:26 -0700 (PDT) From: "Denis Kishenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1081) [classlib][text] ChoiceFormat.format(double, StringBuffer, FieldPosition) throws unexpected ArrayIndexOutOfBoundsException In-Reply-To: <5036853.1154958073886.JavaMail.jira@brutus> 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-1081?page=comments#action_12432447 ] Denis Kishenko commented on HARMONY-1081: ----------------------------------------- Verified > [classlib][text] ChoiceFormat.format(double, StringBuffer, FieldPosition) throws unexpected ArrayIndexOutOfBoundsException > -------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1081 > URL: http://issues.apache.org/jira/browse/HARMONY-1081 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Denis Kishenko > Assigned To: Paulex Yang > Attachments: 1081-ChoiceFormat(2).patch, 1081-ChoiceFormat.patch, 1081-ChoiceFormatTest(2).patch, 1081-ChoiceFormatTest.patch > > > Test ---------------------------------------------------------------- > import java.text.*; > public class bug9410 { > public static void main(String[] args) { > try { > ChoiceFormat fr = new ChoiceFormat("|"); > StringBuffer tmp = new StringBuffer(); > FieldPosition pos = new FieldPosition(6); > StringBuffer buf = fr.format(1, tmp, pos); > System.out.println("buf.length=" + buf.length()); > } catch (Exception e) { > e.printStackTrace(); > } > } > } > Output ----------------------------------------------------------------------------- > RI > buf.length=0 > Harmony > java.lang.ArrayIndexOutOfBoundsException > at java.text.ChoiceFormat.format(ChoiceFormat.java:211) > at java.text.ChoiceFormat.format(ChoiceFormat.java:228) > at bug9410.main(bug9410.java:10) -- 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