The JVM has the following code in DeleteOnExit.
static void add(String file) {
synchronized(files) {
if(files == null)
throw new IllegalStateException("Shutdown in progress");
files.add(file);
}
}
What would you expect to happen if files was null?
(
More... )