* gnu/java/nio/channels/FileChannelImpl.java
(finalize): Added javadoc.
From-SVN: r84858
+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>
* java/text/CollationElementIterator.java
this.mode = mode;
}
- protected void finalize() throws Throwable
- {
- close();
- }
-
public static FileChannelImpl in;
public static FileChannelImpl out;
public static FileChannelImpl err;
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
{
int result;