- 
    Bug 
- 
    Resolution: Duplicate
- 
     P3 P3
- 
    7u21, 8, 9
- 
    emb-arm-trimslice-26.ru.oracle.com 
- 
        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.
            
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.
- duplicates
- 
                    JDK-7145508 [embedded] java.awt.GraphicsDevice.get/setDisplayMode behavior is incorrect when no display is present -           
- Resolved
 
-