6881337: ZipEntry.setComment() was accidentally changed back to old spec/impl in jdk7-b64
authorsherman
Fri, 11 Sep 2009 16:36:22 -0700
changeset 3844 74c6b6e2db6c
parent 3843 b582759a6e99
child 3845 55b55f4c43d0
6881337: ZipEntry.setComment() was accidentally changed back to old spec/impl in jdk7-b64 Summary: restored the correct spec and implementation of setComment Reviewed-by: martin
jdk/src/share/classes/java/util/zip/ZipEntry.java
--- a/jdk/src/share/classes/java/util/zip/ZipEntry.java	Wed Sep 09 20:15:22 2009 -0400
+++ b/jdk/src/share/classes/java/util/zip/ZipEntry.java	Fri Sep 11 16:36:22 2009 -0700
@@ -253,14 +253,10 @@
      * the first 0xFFFF bytes are output to the ZIP file entry.
      *
      * @param comment the comment string
-     * @exception IllegalArgumentException if the length of the specified
-     *            comment string is greater than 0xFFFF bytes
+     *
      * @see #getComment()
      */
     public void setComment(String comment) {
-        if (comment != null && comment.length() > 0xffff) {
-            throw new IllegalArgumentException("invalid entry comment length");
-        }
         this.comment = comment;
     }