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

In class ZipEntry.class, a method called isDirectory() won't work in Windows.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 6u37
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.6.0_37-b06)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [version 6.1.7601]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      In Windows, a directory is end with " \ " , so endsWith( " / " ) will return false.

      A DESCRIPTION OF THE PROBLEM :
      isDirectory() won't work in Windows OS.

      REGRESSION. Last worked in version 6u43

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      make a empty directory DIR/sub.
      compress the directory " DIR " .
      decompress the file we just compressed, we will find that the directory " DIR/sub " doesn't appear in the decompression folder we specify.
      a part of my code:
      if(ze.isDirectory()){//ze is ZipEntry Object, and it always false
      }


      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coffeys Sean Coffey
              Reporter:
              coffeys Sean Coffey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: