JDK-6246720 : REGRESSION: ZipException throws when read the contents from .zip files
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2005-03-28
  • Updated: 2010-04-26
  • Resolved: 2005-03-28
Related Reports
Duplicate :  
Description
J2SE Version (please include all output from java -version flag):

java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b29)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b29, mixed mode, sharing)


Does this problem occur on J2SE 1.4.x or 5.0.x ?  Yes / No (pick one)

No.


Operating System Configuration Information (be specific):

Debian Linux Unstable. Kernel 2.6.10. glibc 2.3.2


Hardware Configuration Information (be specific):

Dell Inspiron 8500, 1GB RAM.


Bug Description:

Reading the contents from .zip files results in an exception like this one:

Exception in thread "main" java.util.zip.ZipException: invalid bit 
length repeat
	at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
	at java.io.FilterInputStream.read(FilterInputStream.java:90)
	at Jdk60ZipTest.main(Jdk60ZipTest.java:24)


Steps to Reproduce (be specific):

Run the attached program.

###@###.### 2005-03-28 16:37:04 GMT

Comments
EVALUATION Very likely a dup of 6237956: mustang b25 cannot extract data from zip files created by third-party zip implementations the fix for which should be in b31. Please verify the fix after b31 is promoted, and reopen this bug if the regression continues. ###@###.### 2005-03-28 19:50:24 GMT
28-03-2005