<Swing Dev> [12] JDK-8213516: jck test api/javax_accessibility/AccessibleState/fields.html fails intermittent

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Dec 19 21:28:15 UTC 2018


Hi, Shashi.

Can you please describe the sequence of calls which might break the
the static table?

BTW did you tried the system where Dmitry was able to reproduce the bug?

On 18/12/2018 22:24, Shashidhara Veerabhadraiah wrote:
> 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.


-- 
Best regards, Sergey.


More information about the swing-dev mailing list