1 --- a/src/java.base/share/classes/jdk/internal/util/OperatingSystem.java Wed Mar 29 20:12:02 2023
2 +++ b/src/java.base/share/classes/jdk/internal/util/OperatingSystem.java Thu Mar 30 13:44:42 2023
4 * The AIX Operating system.
8 + * Operating systems based on Solaris or illumos.
13 // The current OperatingSystem
15 return PlatformProps.TARGET_OS_IS_AIX;
19 + * {@return {@code true} if built for Solaris or illumos operating systems}
22 + public static boolean isSolaris() {
23 + return PlatformProps.TARGET_OS_IS_SOLARIS;
27 * {@return the current operating system}
29 --- a/src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template Wed Mar 29 20:12:02 2023
30 +++ b/src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template Thu Mar 30 13:43:29 2023
32 static final boolean TARGET_OS_IS_MACOS = "@@OPENJDK_TARGET_OS@@" == "macos";
33 static final boolean TARGET_OS_IS_WINDOWS = "@@OPENJDK_TARGET_OS@@" == "windows";
34 static final boolean TARGET_OS_IS_AIX = "@@OPENJDK_TARGET_OS@@" == "aix";
35 + static final boolean TARGET_OS_IS_SOLARIS = "@@OPENJDK_TARGET_OS@@" == "solaris";
37 // The Architecture value for the current architecture
38 static final String CURRENT_ARCH_STRING = "@@OPENJDK_TARGET_CPU@@";