From ee98fe5cd91e0db5e22cb2d3fad6d20bbffc18c5 Mon Sep 17 00:00:00 2001 From: Xueming Shen Date: Fri, 11 Sep 2009 16:36:22 -0700 Subject: [PATCH] 6881337: ZipEntry.setComment() was accidentally changed back to old spec/impl in jdk7-b64 Restored the correct spec and implementation of setComment Reviewed-by: martin --- jdk/src/share/classes/java/util/zip/ZipEntry.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jdk/src/share/classes/java/util/zip/ZipEntry.java b/jdk/src/share/classes/java/util/zip/ZipEntry.java index cba69b0c1a2..0e2ddaec3fb 100644 --- a/jdk/src/share/classes/java/util/zip/ZipEntry.java +++ b/jdk/src/share/classes/java/util/zip/ZipEntry.java @@ -253,14 +253,10 @@ class ZipEntry implements ZipConstants, Cloneable { * 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; }