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

FileChooserDemo hung by keeping pressing Enter key

XMLWordPrintable

    • b74
    • x86
    • windows_vista

      FileChooserDemo hangs up with the following procedure on Windows Vista Japanese (RC 2 b5744):

      1. Run FileChooserDemo
      2. Select 'Windows' look and feel
      3. Click on 'Show file chooser' button
      4. Input some random file name in the text field
      5. Keep pressing the 'Enter' key.

      This starts the FileChooser->Result Dialog->Demo->FileChooser endless loop. After about 30 seconds to a minute, it eventually hangs up with non-responsive file chooser shown. If I click on the close button on the right top corner (X), it throws a NullPointerException as attached.

      Further investigation turned out that it looks like it's not reproducible with the default settings on English version of Windows Vista. However, if Japanese IME is selected, and its language bar is floating on the desktop (both are the default settings in Japanese Vista), I could reproduce it with b5840 English.

      To select the Japanese IME:

      - Go to ControlPanel->'Change keyboard or other input methods'
      - Go to 'Keyboards and Languages' tab, then press 'Change keyboards...' button
      - In 'General' tab, press 'Add...', check 'Microsoft IME' under 'Japanese (Japan).
      - Go back to the 'General' tab, and select 'Microsoft IME' in the 'Default input language' pull down.
      - Go to 'Language Bar' tab, and select 'Floating On Desktop' button
      It turned out that the IME existence seems irrelevant and it is a timing dependent issue. I could reproduce the problem with 10 instances of Java2Demo running without the Japanese IME on my machine. YMMV, though.

            rupashka Pavel Porvatov (Inactive)
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: