JDK-8178911 : Building of awt_Window.cpp fails on Windows with VS2010
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • Submitted: 2017-04-18
  • Updated: 2017-04-19
  • Resolved: 2017-04-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
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;

Comments
Fix Request I'd kindly like to request the inclusion of the this 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. 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. A webrev with the fix is available at: http://cr.openjdk.java.net/~simonis/webrevs/2017/8178911/ and a RFR has been send out to the awt-dev list: http://mail.openjdk.java.net/pipermail/awt-dev/2017-April/012784.html
18-04-2017