The spec should be revised to say that an exclusive lock requires a channel that
is open for both reading and writing, and that a NonReadableChannelException or
a NonWritableChannelException will be thrown, as appropriate, if this condition
does not hold.
The spec should be revised to say that a shared lock requires a channel that is
open for reading (and possibly writing), and that a NonReadableChannelException
will be thrown if this condition does not hold.
-- mr@eng 2001/8/10
is open for both reading and writing, and that a NonReadableChannelException or
a NonWritableChannelException will be thrown, as appropriate, if this condition
does not hold.
The spec should be revised to say that a shared lock requires a channel that is
open for reading (and possibly writing), and that a NonReadableChannelException
will be thrown if this condition does not hold.
-- mr@eng 2001/8/10
- duplicates
-
JDK-8279946 (ch) java.nio.channels.FileChannel tryLock and write methods are missing @throws NonWritableChannelException
-
- Resolved
-
- relates to
-
JDK-4486154 (fs) FileChannel.lock/tryLock throw IOException when not open for read & write
-
- Closed
-