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

JFileChooser.getSelectedFile() returns "ShellFolder: 0x11\somefile.txt"

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.6.0_16"
      Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
      Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      When calling showSaveDialog(), i select my DVD-RAM folder (which is empty), and i type "somefile.txt" followed by ENTER in the filename field.

      JFileChooser.getSelectedFile() returns "ShellFolder: 0x11\somefile.txt" instead of "I:\somefile.txt".

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. call showSaveDialog()
      2. select a drive more "special" than local hard drive
      2. type in the file name, and validate
      3. call JFileChooser.getSelectedFile()

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I would expect "I:\somefile.txt", a regular "drive:" pathname
      ACTUAL -
      I get "ShellFolder: 0x11\somefile.txt"

      REPRODUCIBILITY :
      This bug can be reproduced always.

            rupashka Pavel Porvatov (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: