This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: ZipFile -vs- temporary files
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: ZipFile -vs- temporary files
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 04 Sep 2000 15:27:12 -0600
- Reply-To: tromey at cygnus dot com
I'm checking this in. It fixes the ZipFile constructor to reflect
Anthony's work on File.deleteOnExit.
2000-09-04 Tom Tromey <tromey@cygnus.com>
* java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
DELETE mode.
Tom
Index: java/util/zip/ZipFile.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/zip/ZipFile.java,v
retrieving revision 1.13
diff -u -r1.13 ZipFile.java
--- ZipFile.java 2000/08/29 03:23:57 1.13
+++ ZipFile.java 2000/09/04 21:19:53
@@ -40,7 +40,7 @@
if ((mode & OPEN_DELETE) != 0)
{
delete_on_close = f;
- // f.deleteOnExit(); XXX - Not yet implemented in libgcj
+ f.deleteOnExit();
}
else
{