[kaffe] NumberFormat.getInstance fails

Seo Sanghyeon tinuviel at sparcs.kaist.ac.kr
Thu Jan 20 20:45:46 PST 2005


With today's CVS Kaffe:

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

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

I get:

java.lang.IllegalArgumentException: The specified country code is invalid
   at java.util.Currency.<init> (Currency.java:171)
   at java.util.Currency.getInstance (Currency.java:262)
   at java.text.DecimalFormatSymbols.<init> (DecimalFormatSymbols.java:151)
   at java.text.NumberFormat.computeInstance (NumberFormat.java:327)
   at java.text.NumberFormat.getNumberInstance (NumberFormat.java:456)
   at java.text.NumberFormat.getInstance (NumberFormat.java:381)
   at test.main (test.java:6)

Debian unstable Kaffe is okay.

Seo Sanghyeon



More information about the kaffe mailing list