Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8130050

Italy Currency Format Is Backwards

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8u45, 9
    • Fix Version/s: tbd
    • Component/s: globalization
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            ljiang Leo Jiang (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: