jkf 2005/05/22 08:56:45 Modified: src/main/org/apache/tools/zip ZipEntry.java Log: Throwable caught for 1.1 compatibility only according to comment. As catiching Throwable generally is a bad thing, removed. Revision Changes Path 1.27 +0 -7 ant/src/main/org/apache/tools/zip/ZipEntry.java Index: ZipEntry.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/zip/ZipEntry.java,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- ZipEntry.java 9 Mar 2005 00:20:39 -0000 1.26 +++ ZipEntry.java 22 May 2005 15:56:45 -0000 1.27 @@ -112,7 +112,6 @@ * @since 1.1 */ public Object clone() { - try { ZipEntry e = (ZipEntry) super.clone(); e.setName(getName()); @@ -137,12 +136,6 @@ e.setExternalAttributes(getExternalAttributes()); e.setExtraFields(getExtraFields()); return e; - } catch (Throwable t) { - // in JDK 1.1 ZipEntry is not Cloneable, so super.clone declares - // to throw CloneNotSupported - since JDK 1.2 it is overridden to - // not throw that exception - return null; - } } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]