- 
    Enhancement 
- 
    Resolution: Duplicate
- 
     P3 P3
- 
    None
- 
    8u45
- 
        x86
- 
        windows_10
                    FULL PRODUCT VERSION :
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [version 10.0.10130]
A DESCRIPTION OF THE PROBLEM :
When I did a System.getProperty("os.name"), it returns "Windows 8.1" and System..getProperty("os.version"), "6.3" is returned. My OS is Windows 10, so System.getPropery("os.name") should return "Windows 10" and System.getProperty("os.version") "10.0". This is not really a bug, but need to be fixed.
REGRESSION. Last worked in version 7u75
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.out.println(System.getProperty("os.name"));
System.out.println(System.getProperty("os.version"));
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Windows 10
6.3
ACTUAL -
Windows 8.1
10.0
REPRODUCIBILITY :
This bug can be reproduced always.
---------- 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 ----------
SUPPORT :
YES
            
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [version 10.0.10130]
A DESCRIPTION OF THE PROBLEM :
When I did a System.getProperty("os.name"), it returns "Windows 8.1" and System..getProperty("os.version"), "6.3" is returned. My OS is Windows 10, so System.getPropery("os.name") should return "Windows 10" and System.getProperty("os.version") "10.0". This is not really a bug, but need to be fixed.
REGRESSION. Last worked in version 7u75
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.out.println(System.getProperty("os.name"));
System.out.println(System.getProperty("os.version"));
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Windows 10
6.3
ACTUAL -
Windows 8.1
10.0
REPRODUCIBILITY :
This bug can be reproduced always.
---------- 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 ----------
SUPPORT :
YES
- duplicates
- 
                    JDK-8066504 GetVersionEx in java.base/windows/native/libjava/java_props_md.c might not get correct Windows version -           
- Resolved
 
-         
- 
                    JDK-8066656 System.getProperty( " os.name " ) returns " Windows NT (unknown) " on Windows 10 -           
- Closed
 
-         
- relates to
- 
                    JDK-8066504 GetVersionEx in java.base/windows/native/libjava/java_props_md.c might not get correct Windows version -           
- Resolved
 
-