RFR: 8304912: Use OperatingSystem enum in java.desktop module

Andrey Turbanov aturbanov at openjdk.org
Fri Mar 31 06:47:14 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.

Let's at least update `sun.awt.X11.MotifColorUtilities#loadSystemColorsForCDE`
https://github.com/openjdk/jdk/blob/master/src/java.desktop/unix/classes/sun/awt/X11/MotifColorUtilities.java#L440

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

PR Comment: https://git.openjdk.org/jdk/pull/13213#issuecomment-1491395624



More information about the client-libs-dev mailing list