sun/awt/OSInfo.java (original) (raw)

Weijun Wang weijun.wang at oracle.com
Mon Jun 24 04:57:19 UTC 2013


I thought os.name for Solaris is 'Solaris' but it's actually 'SunOS'. There is a helper class at

http://hg.openjdk.java.net/jdk8/tl/jdk/file/fd050ba1cf72/src/share/classes/sun/awt/OSInfo.java

This file uses

if (osName.contains("Solaris") || osName.contains("SunOS"))

Is it real that the value can be 'Solaris' also?

Can we use this class or make a copy (or move it) into sun.misc?

Thanks Max



More information about the core-libs-dev mailing list