JDK-8249202 : [macOS] setIconified(false) fails to restore undecorated stage
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 8u191,9,openjfx11,openjfx15
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • Submitted: 2020-07-10
  • Updated: 2020-08-13
  • Resolved: 2020-08-13
Related Reports
Duplicate :  
Relates :  
Description
I discovered this while testing the fix for JDK-8248490.

To reproduce this, run the attached test program:

$ java IconifyTest

This test will create an undecorated stage, call setIconified(true) to iconify it, then call setIconified(false) to restore it. After the fix for JDK-8248490 it will iconify correctly, but the call to setIconified(false) fails to restore it.

The window can still be restored using the task bar.

This fails at least as far back as 8u191, and fails in JDK 9 and later, so is not a regression (or at least not a recent one).
Comments
The fix for JDK-8251241, which is now under review, also fixes this bug. I will close this as a duplicate of that bug.
13-08-2020