natThread.cc (finish_): Don't clear 'group'.
* java/lang/natThread.cc (finish_): Don't clear 'group'. * sources.am, Makefile.in: Rebuilt. * java/lang/Runtime.java (exit): Merged with Classpath. (runShutdownHooks): New method from Classpath. * java/io/File.java (deleteOnExit): Use DeleteFileHelper, not FileDeleter. * gnu/gcj/runtime/FileDeleter.java: Removed. * java/lang/natRuntime.cc (runFinalizationForExit): New method. (exitInternal): Don't run finalizers or delete files. From-SVN: r109400
This commit is contained in:
parent
0c158c887f
commit
1058a848dc
10 changed files with 122 additions and 96 deletions
|
@ -1,5 +1,5 @@
|
|||
/* File.java -- Class representing a file on disk
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
@ -44,7 +44,6 @@ import java.net.URI;
|
|||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import gnu.classpath.Configuration;
|
||||
import gnu.gcj.runtime.FileDeleter;
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
|
@ -1375,7 +1374,7 @@ public class File implements Serializable, Comparable
|
|||
if (sm != null)
|
||||
sm.checkDelete (getName());
|
||||
|
||||
FileDeleter.add (this);
|
||||
DeleteFileHelper.add(this);
|
||||
}
|
||||
|
||||
private void writeObject(ObjectOutputStream oos) throws IOException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue