-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b77
-
generic
-
solaris
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2200443 | 6u23 | David Holmes | P3 | Resolved | Fixed | b02 |
The following JCK tests fail due to this issue:
api/java_awt/GraphicsDevice/indexTGF.html#ShapeAndTranslucencyForFullScreen[nullShape]
api/java_awt/Window/indexTGF.html#BackgroundGeneral[testNoAlphaFullScreen]
api/java_awt/Window/indexTGF.html#ShapeGeneral[nullShapeForFullScreen]
The following code causes NPE on Solaris.
JDK: 7 build 74
Platform: Solaris x86
------------------------------------------------------------------------------------------
import java.awt.*;
public class NPE {
public static void main(String[] args) {
GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
devices[0].setFullScreenWindow(new Frame());
devices[0].setFullScreenWindow(null);
}
}
------------------------------------------------------------------------------------------
<db158260@zenit(pts/28).278> /set/java/re/j2se/7/promoted/latest/binaries/solaris-i586/bin/java NPE
Exception in thread "main" java.lang.NullPointerException
at sun.awt.X11GraphicsDevice.setDisplayMode(X11GraphicsDevice.java:388)
at sun.awt.X11GraphicsDevice.setFullScreenWindow(X11GraphicsDevice.java:330)
at NPE.main(NPE.java:10)
api/java_awt/GraphicsDevice/indexTGF.html#ShapeAndTranslucencyForFullScreen[nullShape]
api/java_awt/Window/indexTGF.html#BackgroundGeneral[testNoAlphaFullScreen]
api/java_awt/Window/indexTGF.html#ShapeGeneral[nullShapeForFullScreen]
The following code causes NPE on Solaris.
JDK: 7 build 74
Platform: Solaris x86
------------------------------------------------------------------------------------------
import java.awt.*;
public class NPE {
public static void main(String[] args) {
GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
devices[0].setFullScreenWindow(new Frame());
devices[0].setFullScreenWindow(null);
}
}
------------------------------------------------------------------------------------------
<db158260@zenit(pts/28).278> /set/java/re/j2se/7/promoted/latest/binaries/solaris-i586/bin/java NPE
Exception in thread "main" java.lang.NullPointerException
at sun.awt.X11GraphicsDevice.setDisplayMode(X11GraphicsDevice.java:388)
at sun.awt.X11GraphicsDevice.setFullScreenWindow(X11GraphicsDevice.java:330)
at NPE.main(NPE.java:10)
- backported by
-
JDK-2200443 GraphicsDevice.setFullScreenWindow(null) throws NPE if there's a fullscreen window displayed
-
- Resolved
-
- relates to
-
JDK-6927219 NPE at 2d_fillscreen tests at Ubuntu x64
-
- Closed
-