<AWT Dev> RFR: 8144074: [PIT] Crash calling Toolkit.getScreenSize() on Windows.

Jim Graham james.graham at oracle.com
Wed Nov 25 20:52:37 UTC 2015

I don't see anything wrong with this and it fixes the crash so it must 
be better.

The only thing I'd suggest is to verify that the new code doesn't cause 
problems in the case where the devices were already initialized.  If 
that's OK too, then I think this is a good fix.

But hopefully someone in the AWT team can confirm that UpdateDevices is 
safe to call there...

One issue to track for maybe fixing up later is if this bypasses the 
handling of the -Dsun.java2d.uiScale property...?


On 11/25/15 11:39 AM, Phil Race wrote:
> This resolves a crash on WIndows startup due to changes in the hidpi
> support
> that requires the graphics devices be initialised first in order to get
> screen dimensions.
> http://cr.openjdk.java.net/~prr/8144074/
> https://bugs.openjdk.java.net/browse/JDK-8144074
> -phil.

More information about the awt-dev mailing list