RFR: 8304912: Use OperatingSystem enum in java.desktop module
Roger Riggs
rriggs at openjdk.org
Tue Mar 28 20:09:31 UTC 2023
On Tue, 28 Mar 2023 17:59:31 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.
> * sun.awt.OSInfo#getOSTypeAction - is unused now
>
> * sun.awt.OSInfo#getOSType could use `OperatingSystem` method instead of relying of sun.awt.OSInfo#OS_NAME property. It seems it's used only in one place - sun.awt.X11.MotifColorUtilities#loadSystemColorsForCDE
OSInfo.getOSType() is used by some (1) tests; those references will need to be remediated.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13213#issuecomment-1487524189
More information about the client-libs-dev
mailing list