JDK-8000344 : (props) System.getProperty("os.name") should return "Windows 8" when run on Windows 8
  • Type: Backport
  • Backport of: JDK-7170169
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 6u31
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_8
  • Submitted: 2012-10-03
  • Updated: 2012-12-10
  • Resolved: 2012-10-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.
Other JDK 8
1.4.2_41 b01Fixed 8Fixed
Description
FULL PRODUCT VERSION :
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.2.8250]

A DESCRIPTION OF THE PROBLEM :
The JDK1.6.0 System.getProperty("os.name") doesn't get Windows 8's os.name correct. It should get "Windows 8" instead of "Windows NT (unknown)".

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the following code in Windows 8 Consumer Preview:

public class SystemPropertyTest {

	public static void main(String[] args) {
		System.out.println(System.getProperty("os.name"));
	}

}

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
System.getProperty("os.name") should return "Windows 8".
ACTUAL -
System.getProperty("os.name") returns "Windows NT (unknown)".

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
int req 11543, review 4768
15-10-2012