JDK-8211106 : [windows] Update OS detection code to recognize Windows Server 2019
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2018-09-25
  • Updated: 2019-05-21
  • Resolved: 2018-11-15
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 11 JDK 12 JDK 7 JDK 8 Other
11.0.3Fixed 12 b21Fixed 7u231Fixed 8u221Fixed openjdk8u212Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Sub Tasks
JDK-8219671 :  
Description
The current Windows OS detection code in os_windows.cpp and  
 in java.base/windows/native/libjava/java_props_md.c  does not recognize Windows Server 2019 (to be released in October 2019).
Windows Server 2019  is currently recognized as "Windows Server 2016" which is put into the os name system property (plus printed in the hs_err file).
A fix is  to add a check for the buildNumber which could be used to  distinguish the versions.
Comments
Fix Request: I request the backport of this fix to jdk8u. Windows Server 2019 should be correctly supported. RFR thread: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-March/008834.html
07-03-2019

Fix Request I would like to get the fix downported to jdk11. Windows Server 2019 is currently recognized as "Windows Server 2016" in jdk11, which is put into the os name system property (plus printed in the hs_err file). Having the wrong System property + output fixed in the LTS release jdk11 would be desired. The patch applies cleanly.
15-11-2018

It's been re-released as of today: https://cloudblogs.microsoft.com/windowsserver/2018/11/13/update-on-windows-server-2019-availability/ and still with version 1809. This fix is expected for JDK 12
14-11-2018

Hi David, thank you for the info. I'll bring this update to the OJDK mailing list.
14-11-2018