RFR: 8304912: Use OperatingSystem enum in java.desktop module [v4]

Andrey Turbanov aturbanov at openjdk.org
Sat Apr 8 08:26:48 UTC 2023


On Sat, 8 Apr 2023 00:58:57 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Update classes in the java.desktop module to use the jdk.internal.util.OperatingSystem enum instead of the `os.name` system property to select OS specific behaviors.
>
> Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:
> 
>  - Refactor to use sun.awt.OSInfo instead of system property os.name.
>    Modify OSInfo to use jdk.internal.util.OperatingSystem.
>    Modify OSInfo.getOSType() to use a cached value and not require doPriv
>    or throw SecurityException
>  - Merge branch 'master' into 8304912-use-os-desktop
>  - Update copyright
>    Replaced a few more uses of os.name.
>  - Merge branch 'master' into 8304912-use-os-desktop
>  - Use OperatingSystem.isAix
>  - Remove unused os.arch system property
>  - Apply OperatingSystem enum instead of os.name to java.desktop module

src/java.desktop/share/classes/sun/awt/OSInfo.java line 1:

> 1: /*

`sun.awt.OSInfo#OS_NAME` is now unused

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13213#discussion_r1161082742



More information about the client-libs-dev mailing list