JDK-8024833 : (fc) FileChannel.map does not handle async close/interrupt correctly
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-09-14
  • Updated: 2015-05-11
  • Resolved: 2013-10-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b115Fixed
Related Reports
Duplicate :  
Relates :  
Description
This one was brought up on nio-dev, the map method should be using nd.size(), not size() to work correctly:

http://mail.openjdk.java.net/pipermail/nio-dev/2013-September/002282.html
Comments
Chris Dennis has provided an updated patch that fixes a problem with the test in the original patch: http://mail.openjdk.java.net/pipermail/nio-dev/2013-October/002366.html
22-10-2013