JDK-8214048 : An error occurs when I try to open a file dialog with javax.Swing.JFileChooser
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u192
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2018-11-14
  • Updated: 2018-11-23
  • Resolved: 2018-11-19
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
windows7

A DESCRIPTION OF THE PROBLEM :
1.a error occurs when i run the code as follows if my desktop contains an obsolete shortcut which reference was missing.(i think the default directory to open is just like "C:\Users\username\Documents")
JFileChooser chooser = new JFileChooser();

2.the same error occurs  when i choose a folder that contains an obsolete shortcut which reference was missing in file choose dialog

the error message is shown as japanese, just like "the shortcut is missing it's reference.".

the error does not occur in java 1.8.0_151 or before.

REGRESSION : Last worked in version 8u192


---------- BEGIN SOURCE ----------
JFileChooser chooser = new JFileChooser();
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int result = chooser.showSaveDialog(this);
---------- END SOURCE ----------

FREQUENCY : always



Comments
Closing this as a duplicate of JDK-8213583.
19-11-2018