RFR: 8340387: Update OS detection code to recognize Windows Server 2025
Matthias Baesken
mbaesken at openjdk.org
Wed Nov 6 11:54:32 UTC 2024
On Wed, 6 Nov 2024 11:45:23 GMT, mjschwaiger <duke at openjdk.org> wrote:
>> Windows Server 2025 will be releases in a few months.
>> The OS detection code of the JVM/JDK should recognize the new Windows server 2025 version.
>> (currently Windows server 2022 is printed , that is wrong)
>>
>> The build numbers of some recent previews documented here
>> https://learn.microsoft.com/en-us/windows-server/get-started/whats-new-windows-server-2025
>> are 26080 and 26085 (final release version will most likely be a bit higher).
>
> src/hotspot/os/windows/os_windows.cpp line 1950:
>
>> 1948: // - 2019 GA 11/2018 build: 17763
>> 1949: // - 2022 GA 08/2021 build: 20348
>> 1950: // - 2025 Preview build : 26040
>
> Just for the record, Microsoft released Windows Server 2025 on Nov 1st, 2025 and the official build number is 26100.
>
> // - 2025 GA 11/2024 build: 26100
> if (build_number > 26099) {
> st->print("Server 2025");
>
> Reference: https://learn.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
Thanks this is what I got this week too from our Microsoft experts.
I added the info to this JBS bug 8340387.
With the the check present, we detect also some previews which is not bad imho.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21082#discussion_r1830888321
More information about the core-libs-dev
mailing list