* java/util/zip/ZipFile.java (finalize): New method.

From-SVN: r63218
This commit is contained in:
Mark Wielaard 2003-02-21 12:35:49 +00:00 committed by Mark Wielaard
parent 9dca2ad510
commit fefabda543
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-02-21 Mark Wielaard <mark@klomp.org>
* java/util/zip/ZipFile.java (finalize): New method.
2003-02-21 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc:

View File

@ -304,6 +304,15 @@ public class ZipFile implements ZipConstants
}
}
/**
* Calls the <code>close()</code> method when this ZipFile has not yet
* been explicitly closed.
*/
protected void finalize() throws IOException
{
if (!closed) close();
}
/**
* Returns an enumeration of all Zip entries in this Zip file.
*/