[Bug 128] Loading .jar files created by jar fails

[email protected] Tue, 26 Apr 2005 13:49:02 -0400
Newsgroups gmane.comp.java.vm.sablevm.bugs
Message-ID <[email protected]>
http://sablevm.org/bugs/show_bug.cgi?id=128





------- Additional Comments From [email protected]  2005-04-26 13:49 -------
Created an attachment (id=54)
 --> (http://sablevm.org/bugs/attachment.cgi?id=54&action=view)
Support SUN's jar

Ok. 
First I understood that in the case of specifying the jar on the classpath, GNU

Classpath's zip implementation would be used, which can handle this sort of 
broken zip file. 
The I took this implementation, the ZIP specification and a hex editor. In jars

created by SUN's jar, obviously the compressed_size and uncompressed_size 
values are always 0 in the local file header, while this information is only 
present in the central directory entry. I cannot say whether this is against 
any specification, but Classpath only reads the central dir, and we certainly 
need to support these jar files. 
 
The attached patch moves the fields needed to the zip_file_entry struct and 
reads them while opening the file. Works now with all sorts of zip/jar.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.