ZipFile.java (ZipFile): Delete file when opened in DELETE mode.

* java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
	DELETE mode.

From-SVN: r36144
This commit is contained in:
Tom Tromey 2000-09-04 21:20:27 +00:00 committed by Tom Tromey
parent a1fa0b27e7
commit 23e9541117
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-09-04 Tom Tromey <tromey@cygnus.com>
* java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
DELETE mode.
2000-09-04 Anthony Green <green@redhat.com>
Fix for PR java.io/203:

View File

@ -40,7 +40,7 @@ public class ZipFile implements ZipConstants
if ((mode & OPEN_DELETE) != 0)
{
delete_on_close = f;
// f.deleteOnExit(); XXX - Not yet implemented in libgcj
f.deleteOnExit();
}
else
{