-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b18
-
x86
-
os_x
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2222371 | 8 | Anthony Petrov | P3 | Resolved | Fixed | b34 |
Mac OS X 10.7.3 macmini4,1
Run the attached application. Here, QuitStrategy.CLOSE_ALL_WINDOWS is set. Mac OS sends to all windows in back-to-front order a closing event. On Java level, it is windowClosing(), and if on windowClosing nothing is explicitly closed, it is equivalent to no action. So it works on Apple Java 6: you will see printout from windowClosing() listener's method, and that's it.
However in jdk7 the application frames receive windowClosing, do not receive windowClosed, and application terminates.
Run the attached application. Here, QuitStrategy.CLOSE_ALL_WINDOWS is set. Mac OS sends to all windows in back-to-front order a closing event. On Java level, it is windowClosing(), and if on windowClosing nothing is explicitly closed, it is equivalent to no action. So it works on Apple Java 6: you will see printout from windowClosing() listener's method, and that's it.
However in jdk7 the application frames receive windowClosing, do not receive windowClosed, and application terminates.
- backported by
-
JDK-2222371 [macosx] Quit with QuitStrategy CLOSE_ALL_WINDOWS does terminate application
-
- Resolved
-
- duplicates
-
JDK-7149084 [macosx] Quit with QuitStrategy CLOSE_ALL_WINDOWS does terminate application
-
- Closed
-