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

JCK1.4a-runtime api/javax_swing/interactive/JFileChooserTests.html#JFileChooser

    XMLWordPrintable

    Details

      Description

      Name: iaR10016 Date: 04/29/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b21, JDK1.5.0-b05, JDK1.4.1, JDK1.4.0
      JCK : JCK1.4a-runtime
      Platform[s] : Windows XP Home
                        (not reproducible on Windows 2000, Windows 98)
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling tests : api/javax_swing/interactive/JFileChooserTests.html#JFileChooser [JFileChooserTest0009]

      Method JFileChooser.setFileHidingEnabled(true) does not work on Windows XP if
      Windows Explorer "Do not show hidden files and folders" property is set.
      JCK1.4a runtime interactive test api/javax_swing/interactive/JFileChooserTests.html#JFileChooser
      [JFileChooserTest0009] fails on Windows XP due to this reason.

      JFileChooser.setFileHidingEnabled(true) does not depend on Windows Explorer settings on
      other Windows systems and the test passes.

      Please, do the following steps to reproduce the failure:

      1. In Windows Explorer window select "Tools" - "Folder options..." - "View"
      2. Set "Do not show hidden files and folders" switch checked
      3. Start JFileChooserTests test using the script below
      4. Disable file hidding using "File hiding enabled" switch
      5. Click "JFileChooserOpenDialog", "JFileChooser Save Dialog" or "JFileChooser Custom Dialog" button
          and try to look for hidden files

      Test source location:
      =====================
      /java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/javax_swing/interactive/JFileChooserTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b21/jck14a/win32/winXP_HE_atch_smp_linux-21/workDir/api-interactive/javax_swing/interactive/JFileChooserTests_JFileChooser.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
      --- script start ---
      #!/bin/bash
      JCK="h:/java/jck1.4a/JCK-runtime-14a"
      JDK="h:/java/jdk1.4.2/win32"
      export CLASSPATH="$JCK/classes;$JCK/lib/javatest.jar"
      $JDK/bin/java $switches javasoft.sqe.tests.api.javax.swing.interactive.JFileChooser.JFileChooserTests -TestCaseID JFileChooserTest0009
      --- script end ---

      Specific machine info:
      ======================
      Hostname: linux-21
      OS: Windows XP Home

      Workaround:
      Set Windows Explorer "Show hidden files and folders" property

      ======================================================================

      Name: iaR10016 Date: 05/04/2003


      It seems like JFileChooser.setFileHidingEnabled(boolean) method behaviour depends on
      "Do not show hidden files and folders" and "Hide protected operating system files"
      Windows Explorer settings.

      Please, do the following steps to reproduce the failure on Windows XP:
      1. In Windows Explorer window select "Tools" - "Folder options..." - "View"
      2. Set "Do not show hidden files and folders" and "Hide protected operating system
         files" switches set
      3. Start JFileChooserTests test using the script below
      4. In the test window disable file hidding using "File hiding enabled" switch
      5. Click "JFileChooserOpenDialog", "JFileChooser Save Dialog" or "JFileChooser Custom Dialog" button
         and try to look for hidden files.
         Hidden not-system files are present in tested JFileChooserDialog files list, but hidden system files are not.
         Please, note that JFileChooser works correctly with system not-hidden files and they are present in the files list.

      I am able to reproduce the failure on Windows 2000 Pro, Windows ME, Windows XP Pro and Windows XP home systems.

      If I disable "Hide protected operating system files" property, JFileChooser works correctly.




      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            leifs Leif Samuelsson (Inactive)
            Reporter:
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: