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

Removing focused component from a window causes a JVM crash for JDK7b50+ on WinXP/Vista

XMLWordPrintable

    • b62
    • x86
    • windows_xp, windows_vista
    • Verified

      The following simplified code sample below, extracted from JCK tests reproduces the problem. Using the code below JVM crash is reproducible approximately in 80%, several attempts might be needed.

      JCK tests failed on the first run.

      Tests failed on JDK7b50/Vista, issue reproduced and localized on JDK7b54/XP; (BTW JVM crash is not reproducible on Windows 7, and the tests passed on Windows 2003).
      Log is attached.

      -------------------------------------------
      import java.awt.*;
      public class JVMCrash {
          public static void main(String argv[]) throws Exception {
              Frame sharedFrame = new Frame();
              sharedFrame.setVisible(true);
              Thread.sleep(2000);
              sharedFrame.setFocusTraversalPolicy( new ContainerOrderFocusTraversalPolicy() );
              Component comp = new TextField();
              sharedFrame.add(comp);
              comp.requestFocusInWindow();
              sharedFrame.removeAll();
          }
      }
      -------------------------------------------

      JCK 7 b12 qac
      JDK 7 b50
      Platform: Windows Vista
      TestURL: api/java_awt/awt_focus_subsystem/keyeventdispatcher_keyeventpostprocessor/index.html#KeyEventDispatcher

            dcherepanov Dmitry Cherepanov
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: