<i18n dev> [11] RFR JDK-8190904: Incorrect currency instance returned by java.util.Currency.getInstance()

Nishit Jain nishit.jain at oracle.com
Fri Feb 16 11:50:04 UTC 2018


Please review the fix for JDK-8190904.

Bug: https://bugs.openjdk.java.net/browse/JDK-8190904
Webrev: http://cr.openjdk.java.net/~nishjain/8190904/webrev.07/
CSR: https://bugs.openjdk.java.net/browse/JDK-8196835

Issue: The currency superseding feature gives the possibility of 
allowing two similar Currency instances for a currency code, which is 
against the principle that "There can never more than one Currency 
instance for any given currency".

Fix: Modify the superseding feature to not allow multiple entries with 
same currency code but different numeric and/or minor unit. These are 
ignored as inconsistent entries. Also, If there is any ISO 4217 currency 
data with same currency code as the currency entry given in the 
properties file, then the existing Currency data should be updated with 
the given currency values.

Nishit Jain

More information about the i18n-dev mailing list