diff options
author | Tom Tromey <tromey@redhat.com> | 2005-02-16 21:39:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-02-16 21:39:11 +0000 |
commit | 1b3b050918bab3e1b414eb014cd7efd6eb4e3a3d (patch) | |
tree | f703a63366343f422900c415581c4fb3e108a355 /libjava/gnu/gcj | |
parent | d933abbe01b2c3d85293ede4da34cdd7df47f378 (diff) | |
download | gcc-1b3b050918bab3e1b414eb014cd7efd6eb4e3a3d.zip gcc-1b3b050918bab3e1b414eb014cd7efd6eb4e3a3d.tar.gz gcc-1b3b050918bab3e1b414eb014cd7efd6eb4e3a3d.tar.bz2 |
SharedLibHelper.java (findHelper): Delete copied file on exit.
* gnu/gcj/runtime/SharedLibHelper.java (findHelper): Delete
copied file on exit.
From-SVN: r95116
Diffstat (limited to 'libjava/gnu/gcj')
-rw-r--r-- | libjava/gnu/gcj/runtime/SharedLibHelper.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libjava/gnu/gcj/runtime/SharedLibHelper.java b/libjava/gnu/gcj/runtime/SharedLibHelper.java index 912c58e..bdf7c04 100644 --- a/libjava/gnu/gcj/runtime/SharedLibHelper.java +++ b/libjava/gnu/gcj/runtime/SharedLibHelper.java @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2003, 2004 Free Software Foundation +/* Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation This file is part of libgcj. @@ -67,13 +67,15 @@ public class SharedLibHelper } public static SharedLibHelper findHelper (ClassLoader loader, String libname, - CodeSource source, boolean tryParents) + CodeSource source, + boolean tryParents) { return findHelper (loader, libname, source, null, tryParents); } public static SharedLibHelper findHelper (ClassLoader loader, String libname, - CodeSource source, ProtectionDomain domain, + CodeSource source, + ProtectionDomain domain, boolean tryParents) { synchronized (map) @@ -118,6 +120,7 @@ public class SharedLibHelper ".so", new File ("/tmp")); File src = new File(libname); copyFile (src, copy); + copy.deleteOnExit(); libname = copy.getPath(); } catch (IOException e) |