-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
6
-
generic
-
generic
Filed By : JCK Team
JDK : JDK6.0-b38
(not reproducible with JDK1.5.0)
JCK : JCK 6.0 Build B01
Platform[s] : all
switch/Mode : headless
JCK test owner: http://javaweb.eng/jck/usr/owners.jto
Falling test : See comments
Test source location: /java/re/jck/6.0/promoted/beta/b01/
Problem description:
In headless mode many javax_swing jck tests have failed (see comments for details).
with JDK6.0-b38
Minimized test:
--- Test.java ----------------------------
import javax.swing.*;
public class Test {
public static void main(String[] args) {
new JInternalFrame();
}
}
------------------------------------------
Test output:
$ /set/java/jdk6.0/solaris-sparc/bin/java -Djava.awt.headless=true Test
Exception in thread "main" java.lang.ClassCastException: sun.awt.HeadlessToolkit cannot be cast to sun.awt.SunToolkit
at javax.swing.RepaintManager.getPaintManager(RepaintManager.java:1147)
at javax.swing.RepaintManager.doubleBufferingChanged(RepaintManager.java:1116)
at javax.swing.JRootPane.setDoubleBuffered(JRootPane.java:327)
at javax.swing.JRootPane.<init>(JRootPane.java:316)
at javax.swing.JInternalFrame.createRootPane(JInternalFrame.java:343)
at javax.swing.JInternalFrame.<init>(JInternalFrame.java:319)
at javax.swing.JInternalFrame.<init>(JInternalFrame.java:249)
at Test.main(Test.java:4)
....
dmitry.bessonov@russia 2005-06-02 09:59:27 GMT
dmitry.bessonov@russia 2005-06-02 10:29:42 GMT
JDK : JDK6.0-b38
(not reproducible with JDK1.5.0)
JCK : JCK 6.0 Build B01
Platform[s] : all
switch/Mode : headless
JCK test owner: http://javaweb.eng/jck/usr/owners.jto
Falling test : See comments
Test source location: /java/re/jck/6.0/promoted/beta/b01/
Problem description:
In headless mode many javax_swing jck tests have failed (see comments for details).
with JDK6.0-b38
Minimized test:
--- Test.java ----------------------------
import javax.swing.*;
public class Test {
public static void main(String[] args) {
new JInternalFrame();
}
}
------------------------------------------
Test output:
$ /set/java/jdk6.0/solaris-sparc/bin/java -Djava.awt.headless=true Test
Exception in thread "main" java.lang.ClassCastException: sun.awt.HeadlessToolkit cannot be cast to sun.awt.SunToolkit
at javax.swing.RepaintManager.getPaintManager(RepaintManager.java:1147)
at javax.swing.RepaintManager.doubleBufferingChanged(RepaintManager.java:1116)
at javax.swing.JRootPane.setDoubleBuffered(JRootPane.java:327)
at javax.swing.JRootPane.<init>(JRootPane.java:316)
at javax.swing.JInternalFrame.createRootPane(JInternalFrame.java:343)
at javax.swing.JInternalFrame.<init>(JInternalFrame.java:319)
at javax.swing.JInternalFrame.<init>(JInternalFrame.java:249)
at Test.main(Test.java:4)
....
dmitry.bessonov@russia 2005-06-02 09:59:27 GMT
dmitry.bessonov@russia 2005-06-02 10:29:42 GMT
- duplicates
-
JDK-6189824 REGRESSION: HeadlessException in JComponent.paint() when java.awt.headless=true
-
- Resolved
-