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

GraphicsDevice.getDisplayMode returns null on linux-arm and Linux VM

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      arm
    • OS:
      linux

      Description

      getDisplayMode() returns null for the default graphics device on linux-arm (and Linux VM).
      According to Oracle docs the returned value can not be null.

      The issue can be seen with this code:

      GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
      DisplayMode dm = gd.getDisplayMode();
      if(dm == null) {
             System.err.println("DisplayMode is null");
       } else {
            System.err.println("DisplayMode=" + dm.toString());
       }

      We do not observe the issue on linux-i586.

      We have several functional tests failing because of this issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              akulyakh Alexander Kulyakhtin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: