<i18n dev> Do developers or end-users create currency.properties?

Alan Bateman Alan.Bateman at oracle.com
Wed Nov 21 09:45:06 PST 2012


On 16/10/2012 17:50, Naoto Sato wrote:
> The idea was that "currency.properties" was intended for the 
> "emergency" situation, where JRE's update could not keep up with 
> customers' needs. The assumption was JRE's lib/currency.data should 
> contain the latest currency data with the JRE updates.
>
> Naoto
If there is a need for an override mechanism then the simplest might be 
to just support a system property that allows a properties file to 
specified with the overridden currency data. This seems preferable to 
copying it into the ${java.home}/lib directory. If you agree then the 
question becomes whether this should be part of the specification or 
something that is JDK specific. I've put a first version here and 
perhaps we can discuss this with a view to coming up with a solution:

http://cr.openjdk.java.net/~alanb/8003846/webrev/

It basically just allows java.util.data.currency to be set to the 
location of a currency properties file. If not defined then it will look 
in ${java.home}/lib as before so we get compatibility with jdk7.

-Alan.


More information about the i18n-dev mailing list