This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Re: Patch: java.io.File.deleteOnExit()
- To: green at cygnus dot com
- Subject: Re: Patch: java.io.File.deleteOnExit()
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 04 Sep 2000 10:52:01 -0600
- Cc: java-patches at sources dot redhat dot com
- References: <200009041638.JAA31107@decepticon.cygnus.com>
- Reply-To: tromey at cygnus dot com
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