Hi All, Please review a fix for the JDK 12 for the below bug:

 

Bug: https://bugs.openjdk.java.net/browse/JDK-8213516

 

Webrev: http://cr.openjdk.java.net/~sveerabhadra/8213516/webrev.00/

 

This issue is happening intermittently and am not able to reproduce it on my 
local machine(corner case). As the bug reports issue is happening with jtreg 
running multiple tests on same VM mode. Upon analysis of the "AccessibleState" 
class and it's parent "AccessibleBundle" I think there may be a chance that 
class variable(static variable: table) present in AccessibleBundle can get into 
a corrupted state when multiple AccessibleState class variables are calling the 
method of parent class (loadResourceBundle() thro' toDisplayString() public 
functions) as it tries to load the same resource file into the same 
table(static variable) possibly from different threads(because of jtreg 
execution of multiple tests of the same bundle). Hence added a synchronized 
keyword to the function so that execution goes sequentially while loading the 
table(static hashtable). Since the problem is intermittent and not reproducible 
on local machine, test file is not required I think. Please suggest if you can 
find a different solution for this problem.

 

Thanks and regards,
Shashi

Reply via email to