harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-424) [classlib][text] NullPointerException in java.text.DecimalFormat.getCurrency()
Date Wed, 14 Mar 2007 06:32:10 GMT

     [ 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.


Mime
View raw message