aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/nio/channels
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2004-05-04 05:32:46 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-05-04 05:32:46 +0000
commitaf62fd128af9714e00dfc41808b919f44688feb1 (patch)
treec6c367b98731e4f617ff4ad318c2a3b74fea431c /libjava/gnu/java/nio/channels
parentd8ecbcdb20d121ca465970e86bec702116163de9 (diff)
downloadgcc-af62fd128af9714e00dfc41808b919f44688feb1.zip
gcc-af62fd128af9714e00dfc41808b919f44688feb1.tar.gz
gcc-af62fd128af9714e00dfc41808b919f44688feb1.tar.bz2
2004-05-04 Mark Wielaard <mark@klomp.org>
* gnu/java/nio/channels/FileChannelImpl.java (finalize): New method. From-SVN: r81469
Diffstat (limited to 'libjava/gnu/java/nio/channels')
-rw-r--r--libjava/gnu/java/nio/channels/FileChannelImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/gnu/java/nio/channels/FileChannelImpl.java b/libjava/gnu/java/nio/channels/FileChannelImpl.java
index ea6ef0e..f4686b2 100644
--- a/libjava/gnu/java/nio/channels/FileChannelImpl.java
+++ b/libjava/gnu/java/nio/channels/FileChannelImpl.java
@@ -115,6 +115,11 @@ 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;