RFR: 8233674: JarURLConnection.getJarFile throws Exception if some process is holding the file

Masanori Yano myano at openjdk.java.net
Mon Oct 18 09:57:53 UTC 2021


On Mon, 27 Sep 2021 08:04:23 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> It’s a good idea to ask the Microsoft folks about that, but I don't know the way to ask. Could you tell me how to do it?
>> 
>> As you say, CreateFile function is used in other parts of the JDK, but it have a significant impact to fix all of that. Therefore, I fixed the problem about opening zip files and jar files which is reported in the JBS.
>
>> It’s a good idea to ask the Microsoft folks about that, but I don't know the way to ask. Could you tell me how to do it?
>> 
>> As you say, CreateFile function is used in other parts of the JDK, but it have a significant impact to fix all of that. Therefore, I fixed the problem about opening zip files and jar files which is reported in the JBS.
> 
> I think we need to find out if the issue you are working around is a bug/issue with the virus checker or that Microsoft recommends that all applications should put a retry to work around these issues. As regards the patch then it is incomplete. If we are forced to put a workaround into the JDK code then I think it will have to do everywhere, not just for zip/JAR files.

@AlanBateman Could you reply to the above comment?

-------------

PR: https://git.openjdk.java.net/jdk/pull/5460


More information about the core-libs-dev mailing list