Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8132408

Check os.name before os.version in SunGraphicsEnvironment constructor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8, 9
    • client-libs
    • None
    • 2d
    • b76

        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 on solaris before we check for os.version beeing 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.

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: