RFR: 8341982: Simplify JButton/bug4323121.java [v3]

Abhishek Kumar abhiscxk at openjdk.org
Fri Oct 18 12:31:23 UTC 2024


On Fri, 18 Oct 2024 12:12:48 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> test/jdk/javax/swing/JButton/bug4323121.java line 59:
>> 
>>> 57: 
>>> 58:     // Usage of this flag is thread-safe because of using the mouseEntered latch
>>> 59:     private static boolean modelArmed;
>> 
>> should it be volatile?
>
> No, it shouldn't: _“this flag is thread-safe because of using the `mouseEntered` latch”_.

Ok.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21475#discussion_r1806411706


More information about the client-libs-dev mailing list