On Tue, 3 Mar 2026 16:11:25 GMT, Phil Race <[email protected]> wrote:

> Remove AppContext from JOptionPane. No tests fail with this change.

src/java.desktop/share/classes/javax/swing/JOptionPane.java line 1659:

> 1657:     }
> 1658: 
> 1659:     private static volatile Frame sharedRootFrame;

Any reason for keeping it volatile? I guess similar change in other swing 
classes for AppContext removal is not made volatile for ex. 
https://github.com/openjdk/jdk/commit/0722ae926ff1327c47a922b1ca0b493a0d06526e

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30028#discussion_r2893586582

Reply via email to