mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-11 07:28:36 +00:00
7170169: (props) System.getProperty("os.name") should return "Windows 8" when run on Windows 8
Enable Windows Version 6.2 to be recognized as Windows 8 Reviewed-by: darcy, dholmes, alanb, chegar
This commit is contained in:
parent
f785c8a7a4
commit
380c23f06b
@ -403,6 +403,7 @@ GetJavaProperties(JNIEnv* env)
|
||||
* Windows Server 2008 6 0 (!VER_NT_WORKSTATION)
|
||||
* Windows 7 6 1 (VER_NT_WORKSTATION)
|
||||
* Windows Server 2008 R2 6 1 (!VER_NT_WORKSTATION)
|
||||
* Windows 8 6 2 (VER_NT_WORKSTATION)
|
||||
*
|
||||
* This mapping will presumably be augmented as new Windows
|
||||
* versions are released.
|
||||
@ -459,6 +460,7 @@ GetJavaProperties(JNIEnv* env)
|
||||
switch (ver.dwMinorVersion) {
|
||||
case 0: sprops.os_name = "Windows Vista"; break;
|
||||
case 1: sprops.os_name = "Windows 7"; break;
|
||||
case 2: sprops.os_name = "Windows 8"; break;
|
||||
default: sprops.os_name = "Windows NT (unknown)";
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user