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

Alan Bateman alanb at openjdk.java.net
Sun Sep 12 14:31:50 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.

This will need discussion as to whether the JDK should put in retry loops to work around interference from virus checkers. I wonder if it possible to get any input from the Microsoft engineers on whether native applications are expected to do this or whether the issue here is actually a configuration issue or problem with a specific virus checker. If we are adding a workaround to the JDK then it will require much more broader changes that does proposed so I think more analysis and discussion will be required before deciding whether it is right to do anywhere here or not.


Changes requested by alanb (Reviewer).

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

More information about the core-libs-dev mailing list