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

Obsolete currency code for Russia

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.4.2, 5.0
    • core-libs
    • b28
    • generic, x86
    • generic, windows_2000



      Name: rmT116609 Date: 10/23/2003


      FULL PRODUCT VERSION :
      java version "1.4.2_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
      Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)


      FULL OS VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      java.util.Currency returns "RUR" as currency code of Russia.
      "RUR" is obsolete. Actual one is "RUB".

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      see source code

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      "RUB" Russia
      ACTUAL -
      "RUR" Russia

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.util.*;

      public class Test
      {
          public static void main(String[] args)
          {
              Locale[] locs = Locale.getAvailableLocales();
              for(int i=0; i < locs.length; i++)
              {
                  try
                  {
                      System.out.println(Currency.getInstance(locs[i])+
                      " "+locs[i].getDisplayCountry());
                  }
                  catch(Exception e){}
              }
          }
      }
      ---------- END SOURCE ----------
      (Incident Review ID: 217387)
      ======================================================================

            peytoia Yuka Kamiya (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: