<AWT Dev> [9] Review request for 8032078: CPlatformWindow.setWindowState throws RuntimeException, if windowState=ICONIFIED|MAXIMIZED_BOTH

Anton Litvinov anton.litvinov at oracle.com
Tue Jan 21 03:27:58 PST 2014


Hello,

Could you please review the following fix for the bug.

Bug: https://bugs.openjdk.java.net/browse/JDK-8032078
Webrev: http://cr.openjdk.java.net/~alitvinov/8032078/jdk9/webrev.00

The bug consists in undocumented throwing of "RuntimeException" from the 
method "Frame.setExtendedState" for the compound state "ICONIFIED | 
MAXIMIZED_BOTH" that is supported according to a result of 
"Frame.isFrameStateSupported" method call on OS X.

The solution adds handling of the mask "ICONIFIED | MAXIMIZED_BOTH" to 
"switch" block of the method 
"sun.lwawt.macosx.CPlatformWindow.setWindowState" which duplicates 
existing handling of the state "ICONIFIED" and prevents from throwing of 
the exception.

Thank you,
Anton


More information about the awt-dev mailing list