<AWT Dev> [8] Review request for CR 8020210 [macosx] JVM crashes in CWrapper$NSWindow.screen(long)

Petr Pchelko petr.pchelko at oracle.com
Wed Jul 10 03:31:01 PDT 2013

Hello, AWT Team.

Please review the fix for the following issue:
The fix is available at:

In case the window is offscreen the [NSWindow screen] method could return null, so we crashed in CFRetain(screen). So the CWrapper.Window.screen method is quite dangerous. I've replaced it with getting screen bounds/insets using a GraphicsDevice.

With best regards. Petr.

More information about the awt-dev mailing list