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

Masanori Yano myano at openjdk.java.net
Mon Sep 27 07:44:04 UTC 2021

On Fri, 10 Sep 2021 09:23:52 GMT, Masanori Yano <myano at openjdk.org> wrote:

> Could you please review the 8233674 bug fixes?
> This problem is caused by the antivirus software opening the file for a short time, so CreateFile() should be retried.

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.


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

More information about the core-libs-dev mailing list