Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 84180 invoked from network); 14 Mar 2007 06:33:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 06:33:26 -0000 Received: (qmail 20160 invoked by uid 500); 14 Mar 2007 06:33:32 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 20114 invoked by uid 500); 14 Mar 2007 06:33:31 -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 19868 invoked by uid 99); 14 Mar 2007 06:33:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 23:33:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 23:32:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 572CE71407E for ; Tue, 13 Mar 2007 23:32:10 -0700 (PDT) Message-ID: <2897008.1173853930354.JavaMail.jira@brutus> Date: Tue, 13 Mar 2007 23:32:10 -0700 (PDT) From: "Mikhail Loenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-424) [classlib][text] NullPointerException in java.text.DecimalFormat.getCurrency() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Loenko updated HARMONY-424: ----------------------------------- Summary: [classlib][text] NullPointerException in java.text.DecimalFormat.getCurrency() (was: NullPointerException in java.text.DecimalFormat.getCurrency()) > [classlib][text] NullPointerException in java.text.DecimalFormat.getCurrency() > ------------------------------------------------------------------------------ > > Key: HARMONY-424 > URL: https://issues.apache.org/jira/browse/HARMONY-424 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: WIN with Russian defaults > Reporter: Boris Kuznetsov > > Consider the following code: > System.out.println("Locale " + Locale.getDefault()); > System.out.println("Default " + Currency.getInstance(Locale.getDefault())); > DecimalFormat format = (DecimalFormat) DecimalFormat.getInstance(); > System.out.println("Currency "+format.getCurrency()); > It produses (on computer with Russian defaults): > RI output: > Locale ru_RU > Default RUR > Currency RUR > Harmony output: > Locale ru_RU > Default RUR > ?????????????? ???????? ? ???? "main" java.lang.NullPointerException > at java.text.DecimalFormat.getCurrency(DecimalFormat.java:271) > at test.main(test.java:10) > org.apache.harmony.tests.java.text.DecimalFormatTest failed due this reason. > Looks like a bug in icu4 lib (used in java.text.DecimalFormat). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.