JDK-8162776 : Add support for Windows 2016
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: windows
  • CPU: generic
  • Submitted: 2016-07-29
  • Updated: 2016-12-09
  • Resolved: 2016-12-09
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
FULL PRODUCT VERSION :
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) Client VM (build 25.77-b03, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
OS Name:                   Microsoft Windows Server 2016
OS Version:                10.0.14300 N/A Build 14300

A DESCRIPTION OF THE PROBLEM :
When I execute a System.getProperty("os.name"), it returns "Windows NT (unknown)" and System..getProperty("os.version"), "10.0" is returned. My OS is Windows server 2016, so System.getPropery("os.name") should return "Windows server 2016". This is not really a bug, but need to be fixed.


JUSTIFICATION :
Below java api calls are not giving Windows server 2016 OS details.
This OS support needs to added to show proper OS details.

System.getProperty("os.name");
System.getProperty("os.version");

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
My OS is Windows server 2016, So System.getPropery("os.name") should return "Windows server 2016".
ACTUAL -
When I execute a System.getProperty("os.name"), it returns "Windows NT (unknown)" and System.getProperty("os.version"), "10.0" is returned.

---------- BEGIN SOURCE ----------
public class Test
{
        public static void main(String ... args)
        {
                System.out.println(System.getProperty("os.name"));
                System.out.println(System.getProperty("os.version"));
        }
}
---------- END SOURCE ----------