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

An error occurs when I try to open a file dialog with javax.Swing.JFileChooser

XMLWordPrintable

    • x86_64
    • windows_7

      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


            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: