<AWT Dev> [9] RFR(XXS): 8178911: Building of awt_Window.cpp fails on Windows with VS2010

Volker Simonis volker.simonis at gmail.com
Tue Apr 18 18:21:40 UTC 2017


I'd kindly like to request the inclusion of the following trivial fix
into jdk9 to keep it buildable with VS2010:


I know that VS2010 isn't Oracle's default compiler for Windows, but
others like SAP are still using it. The fix for JDK-8175293 introduced
a struct assignment which is not supported by VS2010:

prevScaleRec = { -1, -1, -1 };

The fix is rather trivial and would keep the JDK9 sources buildable with VS2010:

prevScaleRec.scaleX = prevScaleRec.scaleY = prevScaleRec.screen = -1;

As this fix only removes some "syntactic sugar" I think it imposes no
risks at all. The benefits of being able to still build the complete
jdk 9 with VS2010 justifies in my opinion its inclusion into jdk9,
even at this stage.

Thank you and best regards,

More information about the awt-dev mailing list