<AWT Dev> [8] Review Request: JDK-8024779 [macosx] SwingNode crashes on exit

Petr Pchelko petr.pchelko at oracle.com
Fri Sep 13 05:06:27 PDT 2013

Hello, AWT Team.

Please review the fix for the following issue:
(Might not be on bugs.sun.com yet)
The fix is available at:

The problem:
SwingNode crashes on exit in case Popups or ComboBoxes are used. The problem is that FX detaches the Appkit thread from the JVM before Swing finishes deallocating windows. 
The idea is simple: I've replaced the getJNIEnv with getJNIEnvUncached in dealloc methods. It's a common practice in all deallocation code in AWT except AWTView and AWTWindow.

With best regards. Petr.

More information about the awt-dev mailing list