From 84ec19f8bcfd55c74d6823716873c489e7eecd0b Mon Sep 17 00:00:00 2001 From: sherman 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 Summary: restored the correct spec and implementation of setComment Reviewed-by: martin --- src/share/classes/java/util/zip/ZipEntry.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/share/classes/java/util/zip/ZipEntry.java b/src/share/classes/java/util/zip/ZipEntry.java index cba69b0c1..0e2ddaec3 100644 --- a/src/share/classes/java/util/zip/ZipEntry.java +++ b/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; } -- GitLab