You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Boris Kuznetsov (JIRA)" <ji...@apache.org> on 2006/04/28 15:40:37 UTC
[jira] Created: (HARMONY-424) NullPointerException in
java.text.DecimalFormat.getCurrency()
NullPointerException in java.text.DecimalFormat.getCurrency()
-------------------------------------------------------------
Key: HARMONY-424
URL: http://issues.apache.org/jira/browse/HARMONY-424
Project: Harmony
Type: Bug
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.
-
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
Re: [jira] Created: (HARMONY-424) NullPointerException in java.text.DecimalFormat.getCurrency()
Posted by Richard Liang <ri...@gmail.com>.
Boris Kuznetsov (JIRA) wrote:
> NullPointerException in java.text.DecimalFormat.getCurrency()
> -------------------------------------------------------------
>
> Key: HARMONY-424
> URL: http://issues.apache.org/jira/browse/HARMONY-424
> Project: Harmony
> Type: Bug
>
> 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).
>
>
>
Hello,
I'd like to have a look at this issue. :-)
--
Richard Liang
China Software Development Lab, IBM
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
[jira] Updated: (HARMONY-424) NullPointerException in
java.text.DecimalFormat.getCurrency()
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-424?page=all ]
Stepan Mishura updated HARMONY-424:
-----------------------------------
Component/s: Classlib
> NullPointerException in java.text.DecimalFormat.getCurrency()
> -------------------------------------------------------------
>
> Key: HARMONY-424
> URL: http://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.
-
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