New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK-8274840: Update OS detection code to recognize Windows 11 #5846
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 16 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/contributor add Arno Zeller arno.zeller@sap.com |
@MBaesken |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally seems fine. One nit about comments.
Thanks,
David
@@ -544,7 +546,14 @@ GetJavaProperties(JNIEnv* env) | |||
} else if (majorVersion == 10) { | |||
if (is_workstation) { | |||
switch (minorVersion) { | |||
case 0: sprops.os_name = "Windows 10"; break; | |||
case 0: | |||
/* Windows 11 21H2 (original release) build number is 22000 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the big comment block before the switch I don't see the need to repeat the information here. Same goes for the existing comments below for the server versions.
/integrate |
Going to push as commit 97ea9dd.
Your commit was automatically rebased without conflicts. |
Hi Christoph and David, thanks for the reviews ! |
The OS detection code of the JDK/JVM should recognize the new Windows 11. For details see :
https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
OS build number is : 22000.194 for 21H2 (original release)
Please review the following small patch !
(patch comes originally from azeller (Arno Zeller) , I just added a comment and did some testing)
Thanks, Matthias
Progress
Issue
Reviewers
Contributors
<arno.zeller@sap.com>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5846/head:pull/5846
$ git checkout pull/5846
Update a local copy of the PR:
$ git checkout pull/5846
$ git pull https://git.openjdk.java.net/jdk pull/5846/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5846
View PR using the GUI difftool:
$ git pr show -t 5846
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5846.diff