This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch to ZipOutputStream


I checked in the following.  (This class has not been merged
with Classpath.)

2002-01-19  Per Bothner  <per@bothner.com>

	* java/util/zip/ZipOutputStream.java (putNextEntry):  Clear
	uncompressed_size in readiness for next entry.

-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


Index: ZipOutputStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/zip/ZipOutputStream.java,v
retrieving revision 1.9
diff -u -r1.9 ZipOutputStream.java
--- ZipOutputStream.java	2001/04/01 21:28:45	1.9
+++ ZipOutputStream.java	2002/01/19 20:49:54
@@ -237,6 +237,7 @@
     def.reset();
     def.setLevel(compr);
     sum.reset();
+    uncompressed_size = 0;
   }
 
   public void setLevel (int level)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]