RFR: JDK-8241883: (zipfs) SeekableByteChannel:close followed by SeekableByteChannel:close will throw an NPE
Alan Bateman
Alan.Bateman at oracle.com
Fri Apr 10 07:23:02 UTC 2020
On 09/04/2020 19:20, Lance Andersen wrote:
>
> Of course, and can be found at:
> http://cr.openjdk.java.net/~lancea/8241883/webrev.00/index.html
>
> I modified the patch to use the beginWrite() from ByteArrayChannel per
> Christoph’s suggestion (I had done that originally but talked myself
> out of that for some reason …)
Thanks for this, the inline patch didn't look right because it didn't
coordinate the locking with the super class but this version seems to do
it right. So I think it looks good.
-Alan.
More information about the nio-dev
mailing list