-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
5.0u7
-
None
-
x86
-
windows_xp
In JDK 1.5.0 Update 7, it is not possible to use
ZipOutputStream.putNextEntry(new ZipEntry(ze)), if the object "ze" has been used in a different Zip stream with different compression level. If one tries to do this, a java.util.zip.ZipException is
thrown with message text "invalid entry compressed size (expected 22 but got 25 bytes)".
One soln that worked is to use ZipOutputStream.putNextEntry(new ZipEntry(ze.getName())) instad. But the ISV would like to know when the original problem will be solved.
The attached sample program ZipEntryProblem.java illustrates the problem.
ZipOutputStream.putNextEntry(new ZipEntry(ze)), if the object "ze" has been used in a different Zip stream with different compression level. If one tries to do this, a java.util.zip.ZipException is
thrown with message text "invalid entry compressed size (expected 22 but got 25 bytes)".
One soln that worked is to use ZipOutputStream.putNextEntry(new ZipEntry(ze.getName())) instad. But the ISV would like to know when the original problem will be solved.
The attached sample program ZipEntryProblem.java illustrates the problem.
- duplicates
-
JDK-4682202 deployment of ecperf.ear fails on linux
-
- Closed
-
- relates to
-
JDK-8253952 Refine ZipOutputStream.putNextEntry() to recalculate ZipEntry's compressed size
-
- Resolved
-