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

Update ZipInputStream javadocs to describe more about getNextEntry() method


    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 1.4.2, 5.0, 5.0u5
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
    • OS:


      The present description of the public ZipEntry getNextEntry() does not mention that the ZipEntry object returned from getNextEntry method the does not return attribute information of the zip entry. Please refer to the evaluations of Bugs 4079029 & 4113731.
      Executing methods to obtain the attributes of the ZipEntry object returns -1 and this results in confusion for the developer. Explicit information in the javadocs should make it more clear.
      ###@###.### 2005-03-14 11:03:28 GMT

      Same problem has been reported by a CAP member:
      J2SE Version (please include all output from java -version flag):
        java version "1.5.0_05-ea"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-ea-b02)
        Java HotSpot(TM) Client VM (build 1.5.0_05-ea-b02, mixed mode, sharing)

      Does this problem occur on J2SE 1.4.x or 5.0.x ? Yes / No (pick one)
        Not tested due to new language features used in the project.

      Operating System Configuration Information (be specific):
        Windows XP Professional DE SP2

      Hardware Configuration Information (be specific):
        VAIO VGN-FS115 Notebook with Intel Pentium M, 1.6 GHz Centrino, 1 GB RAM

      Bug Description:
        When reading ZipEntries using
        java.util.zip.ZipInputStream.getNextEntry(), the corresponding entries
        only supply name and date information. Other metainformation like size
        or compressed size are missing, i.e. -1.

        By contrast, when using java.util.zip.ZipFile.entries(), the entries are
        supplied correctly.

      Steps to Reproduce (be specific):
        Use any simple program to read and existing zip via ZipInputStream.

      ###@###.### 2005-07-19 20:25:11 GMT


          Issue Links



              • Assignee:
                sherman Xueming Shen
                ndcosta Nelson Dcosta (Inactive)
              • Votes:
                0 Vote for this issue
                0 Start watching this issue


                • Created: