-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b112
-
generic
-
generic
-
Verified
transferFrom(ReadableByteChannel,long,long) does not throw NonReadableChannelException if the target is a FileChannel that is not readable and the file size is 0. If the file size is > 0 then NonReadableChannelException is thrown as expected.
This is a regression in jdk7-b109 and arises because the updated implementation does not attempt to mmap the target file when it is 0 bytes. It causes the following JCK test to fail:
api/java_nio/channels/FileChannel/index.html#Methods[FileChannel0024]
This bug was originally reported via 6984182 along with other failures but these other failures do not appear to be JDK issues.
This is a regression in jdk7-b109 and arises because the updated implementation does not attempt to mmap the target file when it is 0 bytes. It causes the following JCK test to fail:
api/java_nio/channels/FileChannel/index.html#Methods[FileChannel0024]
This bug was originally reported via 6984182 along with other failures but these other failures do not appear to be JDK issues.
- relates to
-
JDK-6984182 Setting SO_RCVBUF/SO_SNDBUF to larger than tcp_max_buf fails on Solaris 11 if kernel params changed
-
- Closed
-
-
JDK-6431344 (fc) FileChannel.transferTo() doesn't work if address space runs out
-
- Closed
-