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

naoto.sato at oracle.com naoto.sato at oracle.com
Fri Feb 16 16:51:53 UTC 2018


Looks good to me.

Naoto

On 2/16/18 3:50 AM, Nishit Jain wrote:
> Hi,
> 
> 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.
> 
> 
> Regards,
> Nishit Jain


More information about the core-libs-dev mailing list