[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


Hi,

could you please review the following small change:

http://cr.openjdk.java.net/~simonis/webrevs/2015/8132408/
https://bugs.openjdk.java.net/browse/JDK-8132408

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 :).

Thanks,
Volker



More information about the 2d-dev mailing list