Patch: java.io.File.deleteOnExit()
Tom Tromey
tromey@cygnus.com
Mon Sep 4 09:45:00 GMT 2000
Anthony> Here's a patch I forgot to submit a few weeks ago. It adds
Anthony> support for the deleteOnExit method to java.io.File. It also
Anthony> makes performDelete static because there's no need for it not
Anthony> to be.
Anthony> Ok to commit?
I think that FileDeleter.add needs to be synchronized to avoid a race
condition when deleteOnExitStack is null. Otherwise this patch looks
good to me.
Tom
More information about the Java-patches
mailing list