-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
8u45, 9
-
x86
-
other
FULL PRODUCT VERSION :
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin -MBP.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
The format for Italian currency in Italian is wrong. According
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run this:
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.Locale;
public class CurrencyTest{
public static void main(String []args){
formatCurrency(Locale.ITALY); //Italy
formatCurrency(Locale.ITALIAN); //Italian
}
private static void formatCurrency(Locale locale){
NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(locale);
String numberFormatted = currencyFormatter.format(new BigDecimal(0));
System.out.println(locale.toString()+"\t"+numberFormatted);
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
it_IT 0,00 €
it 0,00 ¤
ACTUAL -
it_IT € 0,00
it ¤ 0,00
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin -MBP.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
The format for Italian currency in Italian is wrong. According
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run this:
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.Locale;
public class CurrencyTest{
public static void main(String []args){
formatCurrency(Locale.ITALY); //Italy
formatCurrency(Locale.ITALIAN); //Italian
}
private static void formatCurrency(Locale locale){
NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(locale);
String numberFormatted = currencyFormatter.format(new BigDecimal(0));
System.out.println(locale.toString()+"\t"+numberFormatted);
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
it_IT 0,00 €
it 0,00 ¤
ACTUAL -
it_IT € 0,00
it ¤ 0,00
REPRODUCIBILITY :
This bug can be reproduced always.