Thank you all, I'll update the class.

Gary

On Fri, Jan 1, 2021, 10:33 Mincong Huang <mincon...@gmail.com> wrote:

> > Can anyone else verify this?
>
> Hello Alex and Gary, I am using Big Sur (11.1) as well. I have the same
> result, where the OS_VERSION returns "10.16". My processor is Intel.
>
> ➜  commons-lang git:(master=) git rev-parse HEAD
> c033ee2feffd73a8c86b9a77e1ffecc5f997c519
>
> ➜  commons-lang git:(master=) java --version
> openjdk 15.0.1 2020-10-20
> OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)
>
> ➜  commons-lang git:(master=) jshell --class-path
> target/commons-lang3-3.12.0-SNAPSHOT.jar
> |  Welcome to JShell -- Version 15.0.1
> |  For an introduction type: /help intro
>
> jshell> org.apache.commons.lang3.SystemUtils.OS_NAME
> $1 ==> "Mac OS X"
>
> jshell> org.apache.commons.lang3.SystemUtils.OS_VERSION
> $2 ==> "10.16"
>
> On Fri, Jan 1, 2021 at 4:24 PM Gary Gregory <garydgreg...@gmail.com>
> wrote:
>
> > Thanks Alex,
> >
> > Is there a different version reported for 11.0 and 11.1 or are both
> > "10.16:"
> >
> > Gary
> >
> > On Fri, Jan 1, 2021 at 9:50 AM Alex Herbert <alex.d.herb...@gmail.com>
> > wrote:
> >
> > > I am running OS X Big Sur 11.1. When I print the java properties from
> > > SystemUtils:
> > >
> > >         System.out.println(SystemUtils.OS_NAME);
> > >         System.out.println(SystemUtils.OS_VERSION);
> > >
> > > ---
> > > Mac OS X
> > > 10.16
> > > ---
> > >
> > > So even though Big Sur is meant to be v11.1 the Java
> > > system property "os.version" is returning 10.16. This is one more than
> > OS X
> > > 10.15 Catalina. I am on an intel based Macbook although I do not think
> it
> > > would change for a new ARM based processor.
> > >
> > > Can anyone else verify this?
> > >
> > > The last entry to SystemUtils for OS X was IS_OS_MAC_OSX_EL_CAPITAN
> which
> > > is for 10.11. So SystemUtils is missing [1]:
> > >
> > > macOS 10.12 Sierra
> > > macOS 10.13 High Sierra
> > > macOS 10.14 Mojave
> > > macOS 10.15 Catalina
> > >
> > > Alex
> > >
> > > [1] https://en.wikipedia.org/wiki/MacOS
> > >
> >
>

Reply via email to