[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #11654] java.util.Currency should be changed so as to
From: |
Andrew John Hughes |
Subject: |
[commit-cp] [bugs #11654] java.util.Currency should be changed so as to less depend on locales |
Date: |
Thu, 20 Jan 2005 14:35:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Epiphany/1.0.8 |
This is an automated notification sent by Savannah.
It relates to:
bugs #11654, project classpath
==============================================================================
LATEST MODIFICATIONS of bugs #11654:
==============================================================================
Posted by: Andrew John Hughes <gnu_andrew>
Posted on: 2005-01-20 14:35 (GMT)
_______________________________________________________
Status: None -> Fixed
Open/Closed: Open -> Closed
==============================================================================
OVERVIEW of bugs #11654:
==============================================================================
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11654>
Summary: java.util.Currency should be changed so as to less
depend on locales
Project: classpath
Submitted by: gnu_andrew
Submitted on: Thu 01/20/2005 at 12:45
Category: classpath
Severity: 3 - Ordinary
Status: Fixed
Privacy: Public
Assigned to: gnu_andrew
Open/Closed: Closed
Platform Version: None
_______________________________________________________
At present, our implementation of java.util.Currency.getInstance(String) is
non-deterministic; it will return the Currency instance for the locale it
finds first, rather than for a determined locale. The locale is irrelevant
to the actual Currency instance, and we should not depend on it. Instead of
getInstance(String) using getInstance(Locale), the two should work in
reverse, with getInstance(Locale) looking up a code which is handed to
getInstance(String). This requires two mappings instead of our one; Locale
-> String and String -> Currency. This also prevents the creation of
multiple identical Currency instances, when keyed by Locale. This will also
solve our ReferenceEquality currency testcase.
==============================================================================
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11654>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/