[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: File.deleteOnExit()
From: |
Michael Koch |
Subject: |
Re: Patch: File.deleteOnExit() |
Date: |
Mon, 17 May 2004 14:22:46 +0200 |
User-agent: |
KMail/1.6.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Montag, 17. Mai 2004 12:40 schrieb Jeroen Frijters:
> Michael Koch wrote:
> > The attached patch written by Guilhem Lavaux implements
> > File.deleteOnExit() in an easy way.
> >
> > Ok to commit ?
>
> It doesn't make me happy to preallocate all these objects (and in
> general, the less static initializers the better). Shouldn't we
> just move DeleteFileHelper to gnu.java.io (or whatever) and make it
> a proper singleton? That way the singleton will be allocated lazily
> upon first use of File.deleteOnExit().
Here is a revised patch for review:
Michael
2004-05-17 Guilhem Lavaux <address@hidden>
* gnu/java/io/DeleteFileHelper.java: New file.
* java/io/File.java
(deleteOnExit): Implemented.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAqK6WWSOgCCdjSDsRApOqAJ4p8atnEmU3jwvjkELwxahJl4lzTgCbByyG
NJb9CfH5esNywLZSg/ZapAc=
=1PTY
-----END PGP SIGNATURE-----
file.diff
Description: Text Data