Name: krC82822 Date: 01/25/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
The implementation of setComment(String comment) in java.util.zip classes
ZipEntry and ZipOutputStream was done without regard to what UTF8 encoding
means.
Only comment Strings which contain ANSI, or 7 bit, characters
can produce a one-to-one correspondence between comment.length() and
byte[].length, after UTF8 encoding, which is what the current implementation
assumes.
(Review ID: 115753)
======================================================================
- relates to
-
JDK-4477310 ZipOutputStream.setComment(String comment) doesn't throw NullPointerException
-
- Closed
-