classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Documentation and serialization patch for java.util.Currenc


From: Andrew John Hughes
Subject: [cp-patches] Documentation and serialization patch for java.util.Currency
Date: Wed, 1 Sep 2004 23:55:03 +0100
User-agent: Mutt/1.5.6+20040722i

The attached patch adds missing documentation to
java.util.Currency, as well as implementing correct
serialization and maintainence of its singleton status
via a cache.
One problem I found in testing this is that retrieving
a instance based on a country code will never work,
as getAllAvailableLocales() is not implemented correctly
(it currently returns a static list of four locales,
most of which refer to particular languages rather than
countries, which isn't too helpful as regards currencies
-- I could retrieve the UK currency via getInstance(Locale.UK)
but not via getInstance("GBP")).  Can this now be properly
implemented?  I don't know the status regarding the locales,
but I suppose we could at least include all the constant
locales in Locale, if not something better.  From browsing
through gnu.java.locale, there are quite a few now implemented
(but I don't know to what degree).
-- 
Andrew :-)

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn. 

Attachment: util_doc_patch_03.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

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