Details
-
Bug
-
Resolution: Fixed
-
P4
-
8u60
-
OS X 10.10.5
-
b11
-
os_x
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8277713 | 17.0.3-oracle | Alex Kasko | P4 | Resolved | Fixed | b01 |
JDK-8277640 | 17.0.2 | Alex Kasko | P4 | Resolved | Fixed | b06 |
Description
When using transferFrom() on a FileChannel to transfer data from one region of the file to another, the call hangs, if the two regions overlap.
Test class is attached.
This should either simply work correctly or lead to an exception.
If an exception is thrown, the conditions under which it is thrown must be documented in the javadocs.
I have tested this on OS X only.
The problem may also occur on other platforms.
Test class is attached.
This should either simply work correctly or lead to an exception.
If an exception is thrown, the conditions under which it is thrown must be documented in the javadocs.
I have tested this on OS X only.
The problem may also occur on other platforms.
Attachments
Issue Links
- backported by
-
JDK-8277640 (fc) Data transfer from FileChannel to itself causes hang in case of overlap
-
- Resolved
-
-
JDK-8277713 (fc) Data transfer from FileChannel to itself causes hang in case of overlap
-
- Resolved
-
- relates to
-
JDK-4722289 (fs) Add FileChannel.transfer(long srcPos, long dstPos, long count) method
-
- Open
-
- links to
-
Commit openjdk/jdk17u/c47e2330
-
Commit openjdk/jdk/428d5169
-
Review openjdk/jdk17u/292
-
Review openjdk/jdk/5061
(2 links to)