8025619: (fc) FileInputStream.getChannel on closed stream returns FileChannel that doesn't know that stream is closed

Brian Burkhalter brian.burkhalter at oracle.com
Wed Dec 10 17:05:13 UTC 2014


On Dec 10, 2014, at 12:18 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> On 09/12/2014 20:11, Brian Burkhalter wrote:
>> 
>> I was using the form suggested in this article
>> 
>> http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
>> 
>> just before the references. Modified.
> The problem with webrev.02 is that it didn't re-read this.channel and so no guarantee that it wouldn't create more than one FileChannel. I think you have it right now.

I see.

>> :
>> 
>> Here’s an updated patch:
>> 
>> http://cr.openjdk.java.net/~bpb/8025619/webrev.03/
>> 
> Looks good, and nice to have a 12 year old issue resolved.

OK, good. I think I’ll do a JPRT run before pushing it however so it might not be today.

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20141210/b9e72ec9/attachment.html>


More information about the nio-dev mailing list