[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] java.util.Currency map change patch
From: |
Andrew John Hughes |
Subject: |
[cp-patches] java.util.Currency map change patch |
Date: |
Thu, 20 Jan 2005 14:34:30 +0000 |
User-agent: |
Mutt/1.5.6+20040907i |
I'm committing the attached patch which fixes the problem with
java.util.Currency creating multiple versions of the same currency
within its cache. It also solves the ReferenceEquality mauve test
case and bug #11654.
Changelog:
2005-01-20 Andrew John Hughes <address@hidden>
* java/util/Currency.java:
Added new countryMap which maps country codes
to international currency codes. The cache
has been altered to map currency codes to
Currency objects.
(getInstance(java.util.Locale)): adds to both
caches and attempts initial lookup from country map
(getInstance(java.lang.String)): attempts to
use code -> currency map first
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
No software patents in Europe -- http://nosoftwarepatents.com
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
"We've all been part of the biggest beta test the world has ever known --
Windows"
-- Victor Wheatman, Gartner
currency-05.diff
Description: Text document
signature.asc
Description: Digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] java.util.Currency map change patch,
Andrew John Hughes <=