On Wed, 18 Nov 2026 00:38:50 GMT, Jose Pereda <[email protected]> wrote:
>> This PR removes the stage from the active windows list after the stage gets >> hidden/closed, preventing a possible NPE in WindowStage::setIconified. >> >> Similar to [JDK-8387626](https://bugs.openjdk.org/browse/JDK-8387626), that >> got fixed removing the stage from the active windows list after there was a >> `WindowEvent.DESTROY` event in `GlassWindowEventHandler::get`, in this case >> the Window::hide` event doesn't produce a `WindowEvent.CLOSE` event. >> Therefore, the fix goes directly in `WindowStage::close`. >> >> A system test that fails before the proposed fix, and passes after it, has >> been included. >> >> --------- >> - [X] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Jose Pereda has updated the pull request incrementally with one additional > commit since the last revision: > > address feedback It passes locally for me on macOS 26, and in our CI on: macOS 15, Ubuntu 24.04, Ubuntu 26.04. ------------- Marked as reviewed by kcr (Lead). PR Review: https://git.openjdk.org/jfx/pull/2373#pullrequestreview-5963152914
