RFR JDK-8069211: (zipfs) ZipFileSystem creates corrupted zip if entry output stream gets closed more than once

Xueming Shen xueming.shen at oracle.com
Fri Jan 16 21:00:49 UTC 2015


On 1/16/15 12:34 PM, Alan Bateman wrote:
> On 16/01/2015 20:24, Xueming Shen wrote:
>> Please help review the change for
>>
>> issue: https://bugs.openjdk.java.net/browse/JDK-8069211
>> webrev: http://cr.openjdk.java.net/~sherman/8069211
> As an initial fix then this looks okay but it's not safe for use by 
> multiple threads (at some point the zip provider needs to be examined).
>
> -Alan.
Yes, not only the zipfs.  lots of the streams from the j.u.zip pacakge 
are not "thread safe". We probably
need take a look later. It really does not make lots of sense to share 
an io stream among multiple threads
though.

-Sherman


More information about the nio-dev mailing list