RFR: 8233674: JarURLConnection.getJarFile throws Exception if some process is holding the file
Alan Bateman
alanb at openjdk.java.net
Mon Oct 18 10:24:59 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?
I view this issue as something for the anti-virus vendor to fix. It would be very disappointing to force the JDK to put in a workaround for this. A workaround would be very intrusive and require changes in many areas of the JDK.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5460
More information about the core-libs-dev
mailing list