Commit af62fd12 by Mark Wielaard Committed by Michael Koch

2004-05-04 Mark Wielaard <mark@klomp.org>

	* gnu/java/nio/channels/FileChannelImpl.java
	(finalize): New method.

From-SVN: r81469
parent d8ecbcdb
2004-05-04 Mark Wielaard <mark@klomp.org>
* gnu/java/nio/channels/FileChannelImpl.java
(finalize): New method.
2004-05-03 Andreas Tobler <a.tobler@schweiz.ch> 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
* Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra. * Makefile.am (WARNINGS): Replace -W with the more speaking -Wextra.
......
...@@ -115,6 +115,11 @@ public final class FileChannelImpl extends FileChannel ...@@ -115,6 +115,11 @@ public final class FileChannelImpl extends FileChannel
this.mode = mode; this.mode = mode;
} }
protected void finalize() throws Throwable
{
close();
}
public static FileChannelImpl in; public static FileChannelImpl in;
public static FileChannelImpl out; public static FileChannelImpl out;
public static FileChannelImpl err; public static FileChannelImpl err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment