Commit 2ccc5a95 by Michael Koch Committed by Michael Koch

2004-07-17 Michael Koch <konqueror@gmx.de>

	* gnu/java/nio/channels/FileChannelImpl.java
	(finalize): Added javadoc.

From-SVN: r84858
parent 61ce29b1
2004-07-17 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/channels/FileChannelImpl.java
(finalize): Added javadoc.
2004-07-17 Guilhem Lavaux <guilhem@kaffe.org> 2004-07-17 Guilhem Lavaux <guilhem@kaffe.org>
* java/text/CollationElementIterator.java * java/text/CollationElementIterator.java
......
...@@ -115,11 +115,6 @@ public final class FileChannelImpl extends FileChannel ...@@ -115,11 +115,6 @@ 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;
...@@ -137,6 +132,14 @@ public final class FileChannelImpl extends FileChannel ...@@ -137,6 +132,14 @@ public final class FileChannelImpl extends FileChannel
protected native void implCloseChannel() throws IOException; protected native void implCloseChannel() throws IOException;
/**
* Makes sure the Channel is properly closed.
*/
protected void finalize() throws IOException
{
this.close();
}
public int read (ByteBuffer dst) throws IOException public int read (ByteBuffer dst) throws IOException
{ {
int result; int result;
......
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