-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b84
-
generic
-
solaris, windows
The following minimized code throws "java.lang.UnsatisfiedLinkError: sun.awt.X11GraphicsEnvironment.getNumScreens()I" on JDK7 b74 if executed with "-Djava.awt.headless=true" on Solaris
JDK 7 b74 FAILS
JDK 7 b73 PASSES
Platform: Solaris
------------------------------------------------------------------------------
import java.awt.*;
public class TestGetDefScreenDevice {
public static void main(String[] args) {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
try {
ge.getDefaultScreenDevice();
System.out.println("Failed. HeadlessException not thrown");
} catch (HeadlessException he) {
System.out.println("Passed. HeadlessException thrown as expected");
}
}
}
------------------------------------------------------------------------------
<db158260@zenit(pts/28).298> /set/java/re/j2se/7/promoted/all/b74/binaries/solaris-i586/bin/java -Djava.awt.headless=true TestGetDefScreenDevice
Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.awt.X11GraphicsEnvironment.getNumScreens()I
at sun.awt.X11GraphicsEnvironment.getNumScreens(Native Method)
at sun.java2d.SunGraphicsEnvironment.getScreenDevices(SunGraphicsEnvironment.java:120)
at sun.awt.X11GraphicsEnvironment.getDefaultScreenDevice(X11GraphicsEnvironment.java:163)
at TestGetDefScreenDevice.main(TestGetDefScreenDevice.java:9)
For JDK7b73:
<db158260@zenit(pts/28).297> /set/java/re/j2se/7/promoted/all/b73/binaries/solaris-i586/bin/java -Djava.awt.headless=true TestGetDefScreenDevice
Passed. HeadlessException thrown as expected
JDK 7 b74 FAILS
JDK 7 b73 PASSES
Platform: Solaris
------------------------------------------------------------------------------
import java.awt.*;
public class TestGetDefScreenDevice {
public static void main(String[] args) {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
try {
ge.getDefaultScreenDevice();
System.out.println("Failed. HeadlessException not thrown");
} catch (HeadlessException he) {
System.out.println("Passed. HeadlessException thrown as expected");
}
}
}
------------------------------------------------------------------------------
<db158260@zenit(pts/28).298> /set/java/re/j2se/7/promoted/all/b74/binaries/solaris-i586/bin/java -Djava.awt.headless=true TestGetDefScreenDevice
Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.awt.X11GraphicsEnvironment.getNumScreens()I
at sun.awt.X11GraphicsEnvironment.getNumScreens(Native Method)
at sun.java2d.SunGraphicsEnvironment.getScreenDevices(SunGraphicsEnvironment.java:120)
at sun.awt.X11GraphicsEnvironment.getDefaultScreenDevice(X11GraphicsEnvironment.java:163)
at TestGetDefScreenDevice.main(TestGetDefScreenDevice.java:9)
For JDK7b73:
<db158260@zenit(pts/28).297> /set/java/re/j2se/7/promoted/all/b73/binaries/solaris-i586/bin/java -Djava.awt.headless=true TestGetDefScreenDevice
Passed. HeadlessException thrown as expected
- duplicates
-
JDK-6896392 Two methods of GraphicsEnvironment doesn't throw expected HE on Windows, 7b74
-
- Closed
-
- relates to
-
JDK-6857358 Two testcases are failing in jdk7 b64 pit build with java.security.AccessControlException
-
- Resolved
-