The testcase calls Platform.exit before the dialog is made visible but on macOS, JavaFX takes over the AppKit thread and uses that as the FX application thread. As part of the FX platform shutdown process, it detaches that thread from the JVM. This means that the AppKit thread is no longer available to Java processes so AWT crashes when it ties to access appkit thread. Fix is made to check if the thread has been detached for move-resize notification event before proceeding..
------------- Commit messages: - 8190329: [macos] Swing InterOp Platform.exit() crash Changes: https://git.openjdk.org/jdk/pull/20688/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20688&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8190329 Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/20688.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20688/head:pull/20688 PR: https://git.openjdk.org/jdk/pull/20688