[OpenJDK 2D-Dev] RFR(XS): 8132408 : Check os.name before os.version in SunGraphicsEnvironment constructor

Volker Simonis volker.simonis at gmail.com
Tue Jul 28 16:00:39 UTC 2015


could you please review the following small change:


In the constructor of SunGraphicsEnvironment there's a check for
os.version > 5.10.

If this check is true, /etc/release is opened to get additional
Solaris-specific information. But this query only makes sense on
Solaris, so we should first check if we're really running on Solaris
before we check for os.version being bigger than 5.10.

Otherwise, the VM will try to open /etc/release on every system which
has an os.version bigger than 5.10 (e.g. AIX 7.1 or Linux once we get
to kernel version 5.11 :).


More information about the 2d-dev mailing list