bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/25916] New: java.text.NumberFormat.getCurrencyInstance th


From: bero at arklinux dot org
Subject: [Bug classpath/25916] New: java.text.NumberFormat.getCurrencyInstance throws IllegalArgumentExceptions even on standard locales
Date: 23 Jan 2006 00:34:52 -0000

Test case extracted from Zimbra:


import java.text.NumberFormat;
import java.util.Locale;

class test {
        public static void main(String[] args) {
                NumberFormat currencyFormatter =
NumberFormat.getCurrencyInstance(Locale.ENGLISH);
        }
}


Results in:
Exception in thread "main" java.lang.IllegalArgumentException: The currency
code, $, is not supported.
   at java.util.Currency.getInstance (libgcj.so.7)
   at java.text.DecimalFormatSymbols.getCurrency (libgcj.so.7)
   at java.text.DecimalFormat.getCurrency (libgcj.so.7)
   at java.text.NumberFormat.getCurrencyInstance (libgcj.so.7)
   at test.main (test.java:6)


-- 
           Summary: java.text.NumberFormat.getCurrencyInstance throws
                    IllegalArgumentExceptions even on standard locales
           Product: classpath
           Version: 0.20
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25916





reply via email to

[Prev in Thread] Current Thread [Next in Thread]