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

Brian Burkhalter brian.burkhalter at oracle.com
Fri Dec 5 22:06:39 UTC 2014


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

> Try the patch below as a starting point. This will create the FileChannel and close it before the reference is handed out. A cleaner solution would be to create the FileChannel in the closed state but it would involve more intrusive changes.

Here’s an updated patch which extends Alan’s suggested patch:

http://cr.openjdk.java.net/~bpb/8025619/webrev.01/

Thanks,

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


More information about the nio-dev mailing list