2004-05-04 Mark Wielaard <mark@klomp.org>
* gnu/java/nio/channels/FileChannelImpl.java (finalize): New method. From-SVN: r81469
This commit is contained in:
parent
d8ecbcdb20
commit
af62fd128a
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue