You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2020/12/29 18:52:31 UTC

[LANG] BigSur and org.apache.commons.lang3.SystemUtils

If anyone is running Big Sur, may you provide a PR to update SystemUtils?

TY!
Gary

Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils

Posted by Gary Gregory <ga...@gmail.com>.
Thank you all, I'll update the class.

Gary

On Fri, Jan 1, 2021, 10:33 Mincong Huang <mi...@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 <ga...@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 <al...@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
> > >
> >
>

Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils

Posted by Mincong Huang <mi...@gmail.com>.
> 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 <ga...@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 <al...@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
> >
>

Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils

Posted by Gary Gregory <ga...@gmail.com>.
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 <al...@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
>

Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils

Posted by Alex Herbert <al...@gmail.com>.
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

Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils

Posted by Gary Gregory <ga...@gmail.com>.
Anyone on BigSur?

G


On Tue, Dec 29, 2020, 13:57 Gary Gregory <ga...@gmail.com> wrote:

> There is no problem. We define constants to test if you are running on a
> specific OS and its variant. We just need a new constant and test like we
> have for all the others.
> Gary
>
> On Tue, Dec 29, 2020 at 1:54 PM Enrico Olivelli <eo...@gmail.com>
> wrote:
>
>> Which is the problem with BigSur?
>>
>> Enrico
>>
>> Il Mar 29 Dic 2020, 19:52 Gary Gregory <ga...@gmail.com> ha
>> scritto:
>>
>> > If anyone is running Big Sur, may you provide a PR to update
>> SystemUtils?
>> >
>> > TY!
>> > Gary
>> >
>>
>

Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils

Posted by Gary Gregory <ga...@gmail.com>.
There is no problem. We define constants to test if you are running on a
specific OS and its variant. We just need a new constant and test like we
have for all the others.
Gary

On Tue, Dec 29, 2020 at 1:54 PM Enrico Olivelli <eo...@gmail.com> wrote:

> Which is the problem with BigSur?
>
> Enrico
>
> Il Mar 29 Dic 2020, 19:52 Gary Gregory <ga...@gmail.com> ha
> scritto:
>
> > If anyone is running Big Sur, may you provide a PR to update SystemUtils?
> >
> > TY!
> > Gary
> >
>

Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils

Posted by Enrico Olivelli <eo...@gmail.com>.
Which is the problem with BigSur?

Enrico

Il Mar 29 Dic 2020, 19:52 Gary Gregory <ga...@gmail.com> ha scritto:

> If anyone is running Big Sur, may you provide a PR to update SystemUtils?
>
> TY!
> Gary
>