8220477: Channels.newWriter() does not close if underlying channel throws an IOException

Alan Bateman Alan.Bateman at oracle.com
Fri Mar 29 07:35:27 UTC 2019



On 28/03/2019 21:29, Brian Burkhalter wrote:
> For the issue [1] please review the proposed patch [2]. The change is to catch an IOException thrown by implClose() and mark the {en,de}coder as closed anyway. Lots of lines of test for a small change!
>
Looks good. As you are there, would you mind fixing formatting in 
StreamDecoder? I can't tell what happened to it but it looks like the 
intendation has been removed from L230+ onwards (I only noticed it when 
looking at the implClose at the end of file).

-Alan


More information about the nio-dev mailing list