RFR : 8211106: [windows] Update OS detection code to recognize Windows Server 2019

Baesken, Matthias matthias.baesken at sap.com
Tue Oct 2 13:01:06 UTC 2018


Hello, please  review  change 8211106 .

It  updates the  Windows  OS detection code to  recognize Windows Server 2019 .

For this we have to look at the build number (dwBuildNumber  of  OSVERSIONINFOEX),

https://docs.microsoft.com/en-us/windows/desktop/api/Winnt/ns-winnt-_osversioninfoexa


because  dwMajorVersion  and dwMinorVersion  are the same  for  Windows server 2016  and  2019 .

The build number used to compare  ( 17677 )  is  for  Windows Server 2019 preview ,  most likely  the final version will have a higher build number but this is fine for the coding .


Bug/webrev :

https://bugs.openjdk.java.net/browse/JDK-8211106

http://cr.openjdk.java.net/~mbaesken/webrevs/8211106.0/webrev/


Thanks, Matthias


More information about the core-libs-dev mailing list