This is the mail archive of the java-patches@sources.redhat.com 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: ZipFile -vs- temporary files


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
       {

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