Bug in interrupt handling in FileChannelImpl.map( … )

Chris Dennis chris.w.dennis at gmail.com
Wed Sep 18 13:53:06 UTC 2013


I'm interested in pushing this issue to a conclusion, and I'm happy to
contribute a fix. What forest should I be generating a patch against?

On 9/14/13 9:29 AM, "Alan Bateman" <Alan.Bateman at oracle.com> wrote:

>On 13/09/2013 16:04, Chris Dennis wrote:
>> Hi All,
>>
>> I have discovered what I'm pretty certain is a bug in FileChannelImpl's
>> interrupt handling.  The root cause is that the map(…) method is calling
>> size() from within it's begin()/end(…) block.
>Thanks for this, it is indeed a bug and should be using nd.size() rather
>than size().
>
>I've created this bug to track it:
>   8024833: (fc) FileChannel.map does not handle async close/interrupt
>correctly
>
>-Alan.




More information about the nio-dev mailing list