Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 59005 invoked from network); 29 Mar 2010 01:34:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Mar 2010 01:34:50 -0000 Received: (qmail 77220 invoked by uid 500); 29 Mar 2010 01:34:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 77202 invoked by uid 500); 29 Mar 2010 01:34:50 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 77195 invoked by uid 99); 29 Mar 2010 01:34:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Mar 2010 01:34:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Mar 2010 01:34:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4C4BA234C4EF for ; Mon, 29 Mar 2010 01:34:27 +0000 (UTC) Message-ID: <1770405881.540221269826467311.JavaMail.jira@brutus.apache.org> Date: Mon, 29 Mar 2010 01:34:27 +0000 (UTC) From: "Pons Rudy (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6485) [classlib][text] DecimalFormat applyPattern error In-Reply-To: <1102591724.539691269824007222.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pons Rudy updated HARMONY-6485: ------------------------------- Description: DecimalFormat's methods applyPattern and applyLocalizedPattern don't update max/min integer/fraction digits : DecimalFormat df = new DecimalFormat(); df.applyPattern("#00.0#"); System.out.print(df.getMinimumIntegerDigits() + " " + df.getMinimumFractionDigits() + " " + df.getMaximumFractionDigits()); will print 1 0 3 instead of 2 1 2. was: DecimalFormat's methods applyPattern and applyLocalizedPattern don't update max/min integer/fraction digits : DecimalFormat df = new DecimalFormat(); df.applyPattern("#00.0#"); System.out.print(df.getMinimumIntegerDigits() + " " + df.getMaximumIntegerDigits() + " " + df.getMinimumFractionDigits() + " " + df.getMaximumFractionDigits()); will print 1 309 0 3 instead of 2 3 1 2. > [classlib][text] DecimalFormat applyPattern error > ------------------------------------------------- > > Key: HARMONY-6485 > URL: https://issues.apache.org/jira/browse/HARMONY-6485 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 6.0M1 > Reporter: Pons Rudy > Attachments: java5.patch, java6.patch > > > DecimalFormat's methods applyPattern and applyLocalizedPattern don't update max/min integer/fraction digits : > DecimalFormat df = new DecimalFormat(); > df.applyPattern("#00.0#"); > System.out.print(df.getMinimumIntegerDigits() + " " + df.getMinimumFractionDigits() + " " + df.getMaximumFractionDigits()); > will print 1 0 3 instead of 2 1 2. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.