<i18n dev> Review Request for JDK-8165984: ResourceBundle lookup fields not completely thread-safe

Nishit Jain nishit.jain at oracle.com
Fri Sep 16 09:09:39 UTC 2016


Hi,

Please review the fix for JDK-8165984

Bug: https://bugs.openjdk.java.net/browse/JDK-8165984
Webrev: http://cr.openjdk.java.net/~nishjain/8165984/webrev.01/

Fix: the private lookup variable is made final in PropertyResourceBundle 
as after initialization it is not changed anywhere. lookup variable is 
made volatile in ListResourceBundle to make sure that multiple threads 
read the value from main memory.

Regards,
Nishit Jain


More information about the i18n-dev mailing list