On Fri, 18 Oct 2024 12:12:48 GMT, Alexey Ivanov <aiva...@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

Reply via email to