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]

Patch: FYI: PR 4728


I'm checking this in.  It fixes PR 4728.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* java/util/zip/GZIPOutputStream.java (write(int)): New method.
	Fixes PR libgcj/4728.

Index: java/util/zip/GZIPOutputStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/zip/GZIPOutputStream.java,v
retrieving revision 1.5
diff -u -r1.5 GZIPOutputStream.java
--- java/util/zip/GZIPOutputStream.java 2000/11/17 21:42:28 1.5
+++ java/util/zip/GZIPOutputStream.java 2001/10/29 21:44:47
@@ -1,5 +1,5 @@
 /* GZIPOutputStream.java - Create a file in gzip format
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -76,6 +76,12 @@
     out.write (255);
 
     crc = new CRC32 ();
+  }
+
+  public synchronized void write (int bval) throws IOException
+  {
+    super.write (bval);
+    crc.update (bval);
   }
 
   public synchronized void write (byte[] buf) throws IOException


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