-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b80
-
x86
-
linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2154645 | 6u10 | Jiri Tusla | P4 | Resolved | Fixed | b12 |
JDK-2159189 | OpenJDK6 | Jiri Tusla | P3 | Resolved | Fixed | b06 |
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux 2.6.21-1.3194.fc7
A DESCRIPTION OF THE PROBLEM :
If locale is the default locale, US, then the symbol "$" is returned. However,
there are other locales that also have the "$" as their currency. These locales
need to differentiate the American dollar using "US$". Currently, "USD" is
returned.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
$
US$
ACTUAL -
$
USD
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Currency currency = Currency.getInstance(Locale.US);
System.out.println(currency.getSymbol(Locale.US));
System.out.println(currency.getSymbol(Locale.CANADA));
---------- END SOURCE ----------
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux 2.6.21-1.3194.fc7
A DESCRIPTION OF THE PROBLEM :
If locale is the default locale, US, then the symbol "$" is returned. However,
there are other locales that also have the "$" as their currency. These locales
need to differentiate the American dollar using "US$". Currently, "USD" is
returned.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
$
US$
ACTUAL -
$
USD
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Currency currency = Currency.getInstance(Locale.US);
System.out.println(currency.getSymbol(Locale.US));
System.out.println(currency.getSymbol(Locale.CANADA));
---------- END SOURCE ----------
- backported by
-
JDK-2159189 Java.util.Currency.getSymbol(Locale) returns wrong value when locale is not US.
- Resolved
-
JDK-2154645 Java.util.Currency.getSymbol(Locale) returns wrong value when locale is not US.
- Resolved