RFR: 8350976: MenuBarSkin: exception initializing in a background thread [v2]

Andy Goryachev angorya at openjdk.org
Fri Mar 28 14:33:22 UTC 2025


On Fri, 28 Mar 2025 09:21:56 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> menuBar test passes even without the fix in macOS.

That's strange: for me it fails in the current master branch (the line number is different bc I just appended the test to the end of file).  macOS 15.3.2.


java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = MenuBar
	at javafx.graphics/com.sun.glass.ui.Application.checkEventThread(Application.java:440)
	at javafx.graphics/com.sun.glass.ui.Application.supportsSystemMenu(Application.java:719)
	at javafx.graphics/com.sun.javafx.tk.quantum.GlassSystemMenu.isSupported(GlassSystemMenu.java:91)
	at javafx.controls/javafx.scene.control.skin.MenuBarSkin.rebuildUI(MenuBarSkin.java:822)
	at javafx.controls/javafx.scene.control.skin.MenuBarSkin.<init>(MenuBarSkin.java:232)

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

PR Comment: https://git.openjdk.org/jfx/pull/1727#issuecomment-2761531100


More information about the openjfx-dev mailing list