Skip to content

Commit

Permalink
8294837: unify Windows 2019 version check in os_windows and java_prop…
Browse files Browse the repository at this point in the history
…s_md

Backport-of: 7012d4ba5529f8d5b3db508ac4924073ae1eb4cd
  • Loading branch information
MBaesken committed Oct 26, 2022
1 parent 4df92e1 commit 271d85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/windows/native/libjava/java_props_md.c
Expand Up @@ -558,7 +558,7 @@ GetJavaProperties(JNIEnv* env)
/* Windows server 2022 build number is 20348 */
if (buildNumber > 20347) {
sprops.os_name = "Windows Server 2022";
} else if (buildNumber > 17676) {
} else if (buildNumber > 17762) {
sprops.os_name = "Windows Server 2019";
} else {
sprops.os_name = "Windows Server 2016";
Expand Down

0 comments on commit 271d85f

Please sign in to comment.