-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
1.4.2, 5.0, 5.0u5
-
Fix Understood
-
x86
-
windows_xp
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
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
- relates to
-
JDK-4813151 Jar utility should store compressed entry size information in LOC headers
-
- Closed
-
-
JDK-6491622 ZipEntry.setSize() does not set the uncompressed size correctly.
-
- Closed
-
-
JDK-6708131 Add ability to set File Attributes on Zip Entries
-
- Open
-