<AWT Dev> [15] Review Request: 8233573 Toolkit.getScreenInsets(GraphicsConfiguration) may throw ClassCastException

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Dec 20 05:15:58 UTC 2019


Hello.
Please review the fix for JDK 15.

Bug: https://bugs.openjdk.java.net/browse/JDK-8233573
Fix: http://cr.openjdk.java.net/~serb/8233573/webrev.00

All implementations of java.awt.Toolkit#getScreenInsets() on all
platforms will check the passed  GraphicsConfiguration/GraphicsDevice
and call super if a device is unknown, in this case the empty insets
will be returned.


-- 
Best regards, Sergey.


More information about the awt-dev mailing list