JDK-8267512 : JFileChooser freezes when receiving a file drop.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u281
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2021-05-19
  • Updated: 2021-05-24
  • Resolved: 2021-05-20
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Microsoft Windows 10 Enterprise
10.0.18363 Build 18363
JDK 1.8.0_281
JDK 1.8.0_291

A DESCRIPTION OF THE PROBLEM :
Launch a JFileChooser dialog on Windows 10. Drag and drop a file (shortcut or a file icon) from desktop onto the dialog. The dialog freezes.

REGRESSION : Last worked in version 8

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and run the sample with above JDK/JRE on Windows 10.
Drag and drop a file onto the dialog.
The dialog freezes.


---------- BEGIN SOURCE ----------
import javax.swing.JFileChooser;
import javax.swing.SwingUtilities;

public class Test
{
   public static void main(String[] args) throws Exception
   {
      SwingUtilities.invokeLater(new Runnable()
      {
         @Override
         public void run()
         {
            JFileChooser fileChooser = new JFileChooser();
            fileChooser.showOpenDialog(null);
         }
      });
   }
}

---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
The issue has not occurred when running JRE 1.8.0_271 or earlier, but I could be wrong.

FREQUENCY : often



Comments
Duplicates to JDK-8262446
20-05-2021