summaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-04 05:32:46 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-04 05:32:46 +0000
commitc98fd296ca8f527acbf0d40c8ea0a22a01194ecf (patch)
treec6c367b98731e4f617ff4ad318c2a3b74fea431c /libjava/gnu
parent2859c78f3a2e27fc60b9618886396442eb06afda (diff)
downloadgcc-c98fd296ca8f527acbf0d40c8ea0a22a01194ecf.tar.gz
2004-05-04 Mark Wielaard <mark@klomp.org>
* gnu/java/nio/channels/FileChannelImpl.java (finalize): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81469 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu')
-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 ea6ef0e43bf..f4686b26d4f 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;