This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: java.io.File.deleteOnExit()


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]