bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/31895] New: setCurrency(Currency) does not actually chang


From: colin dot green at focus-solutions dot co dot uk
Subject: [Bug classpath/31895] New: setCurrency(Currency) does not actually change the currency.
Date: 10 May 2007 13:12:56 -0000

NumberFormat nf = NumberFormat.getCurrencyInstance();

/*
scanFix() is invoked at this point, which gets the currency symbol from the *  
Locale and sets it as the positivePrefix 
*/

Currency cur = Currency.getInstance("EUR");


nf.setCurrency(cur);

/* 
Here the currency symbol in the internal 'DecimalFormatSymbols' object is
updated, but positivePrefix was not. Hence the formatter still outputs the
original currency symbol. 
*/


-- 
           Summary: setCurrency(Currency) does not actually change the
                    currency.
           Product: classpath
           Version: 0.95
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: colin dot green at focus-solutions dot co dot uk


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





reply via email to

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