This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR 4728
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: FYI: PR 4728
- From: Tom Tromey <tromey at redhat dot com>
- Date: 29 Oct 2001 15:09:26 -0700
- Reply-To: tromey at redhat dot com
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