[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] New java.util.Currency implementation
From: |
Andrew John Hughes |
Subject: |
[cp-patches] New java.util.Currency implementation |
Date: |
Wed, 15 Dec 2004 02:44:31 +0000 |
User-agent: |
Mutt/1.5.6+20040907i |
Attached is a new java.util.Currency implementation which uses
iso4271.properties, as suggested by Michael Koch.
The main problem in creating this was getting this resource into the installed
Classpath, which I achieved in the
end by adding it to the Makefile.am in resources/java/util. If this is not the
correct solution, please let me
know. It would also be nice to know if there is some documentation on this.
At least, I learnt a lot about
classloaders and resources by trying different things ;)
As far as this goes, we've gained some and lost some on the tests. We now have
Euro support, but we've lost what
little symbol support we had (although I think this is in line with Sun's
implementation, but not the specification).
The test file I have gives all decimal points as 2, but the tests suggest this
is not always the case. This is most
likely a bug in an early revision of the file. We also still have a problem
with getAllLocales() which has already
been reported (the UK currency code lookup test fails because of this).
Anyway, let me know your comments and the commit status,
Cheers,
--
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.diff
Description: Text document
signature.asc
Description: Digital signature
- [cp-patches] New java.util.Currency implementation,
Andrew John Hughes <=