JDK-4412571 : Implementation of Jar file does not match specification.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2001-02-07
  • Updated: 2009-06-03
  • Resolved: 2009-06-03
Related Reports
Relates :  
Description

Name: dc32491			Date: 02/06/2001


According to JAR File Specification <http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html>, JAR file is just a zip file that contains an optional META-INF directory. The actual implementation in JDK is using UTF8 encoding for file names. That is not compatible with Zip file format, even if it is a better approach.
This incompatibility causes that file names are corrupted while using other Zip utility program such as WinZip to open a JAR file.
It would be nice if SUN can update JAR file specification by describing explicitly that file names in JAR files are UTF8 encoded.
(Review ID: 116476) 
======================================================================

Comments
EVALUATION The java.util.jar package specification has been updated since 1.4.2 with the following wording "n JAR files, all file names must be encoded in the UTF-8 encoding." The issue of "This incompatibility causes that file names are corrupted while using other Zip utility program such as WinZip to open a JAR file." has been addressed in #4244499. Closed as "not reproducible" (since 1.4.2)
03-06-2009

EVALUATION Will be considered for a future release. andrew.bennett@eng 2001-03-28
28-03-2001