diff options
author | jfrijters <jfrijters> | 2007-11-12 09:45:36 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2007-11-12 09:45:36 +0300 |
commit | 5262271082c8c13f25ffdd1ce3d3b900c7ed3e04 (patch) | |
tree | b896477c64ef18ef6ecd004a161fc150a80ded14 /openjdk/sun/nio/ch | |
parent | 6695ae96dbde072c4c2385efa71731c0522509fb (diff) |
Close the file descriptor after releasing the locks.
Diffstat (limited to 'openjdk/sun/nio/ch')
-rw-r--r-- | openjdk/sun/nio/ch/FileChannelImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openjdk/sun/nio/ch/FileChannelImpl.java b/openjdk/sun/nio/ch/FileChannelImpl.java index db8c0b38..3f24124e 100644 --- a/openjdk/sun/nio/ch/FileChannelImpl.java +++ b/openjdk/sun/nio/ch/FileChannelImpl.java @@ -119,8 +119,6 @@ public class FileChannelImpl protected void implCloseChannel() throws IOException { - fd.close(); - // Invalidate and release any locks that we still hold if (fileLockTable != null) { fileLockTable.removeAll( new FileLockTable.Releaser() { @@ -147,6 +145,8 @@ public class FileChannelImpl else assert false; + } else { + fd.close(); } } |