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

Check os.name before os.version in SunGraphicsEnvironment constructor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      b76

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: