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

REGRESSION: JCK swing tests are failed in headless mode due to JDK regression

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                svioletsunw Scott Violet (Inactive)
                Reporter:
                dbessono Dmitry Bessonov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: