Does Java do anything to prevent files from changing out from under it?

Florian Weimer fw at
Tue May 20 07:24:29 UTC 2008

* Martin Buchholz:

> Fixing this would require hooking into the OS file modification
> notification mechanism; not easy; how to abort a class load in
> progress?

Does the JVM ever reopen a JAR file to read more classes?

If it this isn't the case, at least there's a clean way to replace JARs
on UNIX platforms while a JVM is still referencing them.

More information about the core-libs-dev mailing list