summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-17 08:48:31 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-17 08:48:31 +0000
commit179da2ffa52e632fec65bac9d62cab01ed07da6b (patch)
tree03a33800885ffde6a3b199854258610e03bbd0d9
parent6267d5dfdc45aab94edeebe3daf1be72bef57f1e (diff)
downloadgcc-179da2ffa52e632fec65bac9d62cab01ed07da6b.tar.gz
2004-07-17 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/channels/FileChannelImpl.java (finalize): Added javadoc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84858 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/gnu/java/nio/channels/FileChannelImpl.java13
2 files changed, 13 insertions, 5 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 2648b5771d9..e9a2a50cdce 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/libjava/gnu/java/nio/channels/FileChannelImpl.java b/libjava/gnu/java/nio/channels/FileChannelImpl.java
index f4686b26d4f..8b3d0fc86b3 100644
--- a/libjava/gnu/java/nio/channels/FileChannelImpl.java
+++ b/libjava/gnu/java/nio/channels/FileChannelImpl.java
@@ -115,11 +115,6 @@ public final class FileChannelImpl extends FileChannel
this.mode = mode;
}
- protected void finalize() throws Throwable
- {
- close();
- }
-
public static FileChannelImpl in;
public static FileChannelImpl out;
public static FileChannelImpl err;
@@ -137,6 +132,14 @@ public final class FileChannelImpl extends FileChannel
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;