[jdk8u-dev] Integrated: 8253702: BigSur version number reported as 10.16, should be 11.nn

Olga Mikhaltsova omikhaltcova at openjdk.org
Thu Oct 13 10:02:18 UTC 2022


On Thu, 29 Sep 2022 13:42:15 GMT, Olga Mikhaltsova <omikhaltcova at openjdk.org> wrote:

> I'd like to backport JDK-8253702 to jdk8u in order to fix the incorrect version detection for macOS.
> 
> The patch applied manually due to the location difference:
> `src/java.base/macosx/native/libjava/java_props_macosx.c` (source)
> `jdk/src/solaris/native/java/lang/java_props_macosx.c` (destination)
> But it's small and low risk. The changes are related only to one function `void setOSNameAndVersion(..)` within the single file. The patch is identical to the original one.
> 
> Tested with a simple test printing the OS version on macOS Big Sur:
> 
> public class Main {
>     public static void main(String[] args) {
>         System.out.println(System.getProperty("os.version"));
>     }
> }

This pull request has now been integrated.

Changeset: 05b249d6
Author:    Olga Mikhaltsova <omikhaltcova at openjdk.org>
Committer: Yuri Nesterenko <yan at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/05b249d61aac56c1d4bb346649b6cb8d157deaef
Stats:     30 lines in 1 file changed: 22 ins; 2 del; 6 mod

8253702: BigSur version number reported as 10.16, should be 11.nn

Backport-of: 66757750a2adf0739d0f5bf98a3f50a123b7adcf

-------------

PR: https://git.openjdk.org/jdk8u-dev/pull/125


More information about the jdk8u-dev mailing list