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

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

XMLWordPrintable

    • 2d
    • arm
    • linux

      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.

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

              Created:
              Updated:
              Resolved: