-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
11
-
generic
-
windows
ADDITIONAL SYSTEM INFORMATION :
Windows 11, Java 11
A DESCRIPTION OF THE PROBLEM :
get "Window 10" when I run System.getProperty("os.name") on Windows 11.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run code : System.out.println(System.getProperty("os.name"));
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Windows 11
ACTUAL -
Windows 10
---------- BEGIN SOURCE ----------
public class Main {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}
---------- END SOURCE ----------
FREQUENCY : always
Windows 11, Java 11
A DESCRIPTION OF THE PROBLEM :
get "Window 10" when I run System.getProperty("os.name") on Windows 11.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run code : System.out.println(System.getProperty("os.name"));
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Windows 11
ACTUAL -
Windows 10
---------- BEGIN SOURCE ----------
public class Main {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}
---------- END SOURCE ----------
FREQUENCY : always
- duplicates
-
JDK-8274840 Update OS detection code to recognize Windows 11
- Resolved