Details
-
Enhancement
-
Resolution: Fixed
-
P3
-
6u31
-
b43
-
x86
-
windows_7
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2224977 | 7u6 | Kurchi Subhra Hazra | P3 | Closed | Fixed | b13 |
JDK-2230412 | 6u38 | Dmeetry Degrave | P3 | Closed | Fixed | b03 |
JDK-2230572 | 5.0u39 | Dmeetry Degrave | P3 | Closed | Fixed | b01 |
JDK-8000344 | 1.4.2_41 | Dmeetry Degrave | P3 | Closed | Fixed | b01 |
Description
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.
Attachments
Issue Links
- backported by
-
JDK-2224977 (props) System.getProperty("os.name") should return "Windows 8" when run on Windows 8
-
- Closed
-
-
JDK-2230412 (props) System.getProperty("os.name") should return "Windows 8" when run on Windows 8
-
- Closed
-
-
JDK-2230572 (props) System.getProperty("os.name") should return "Windows 8" when run on Windows 8
-
- Closed
-
-
JDK-8000344 (props) System.getProperty("os.name") should return "Windows 8" when run on Windows 8
-
- Closed
-
- duplicates
-
JDK-7181505 System.getProperty("os.name") should return "Windows 8" when run on Win 8/Java 6
-
- Closed
-
- relates to
-
JDK-6533011 Windows XP 64 SP2 reported as Windows 2003 x86
-
- Closed
-
-
JDK-8006990 TEST_BUG: Test java/lang/System/6220825/VistaVersion.java fails on Windows 2008
-
- Closed
-
-
JDK-7177808 (props) System.getProperty("os.name") returns "Windows NT (unknown)" on Windows 8
-
- Closed
-