diff options
author | Andrew Haley <aph@redhat.com> | 2005-09-09 13:06:24 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2005-09-09 13:06:24 +0000 |
commit | 13d7d8745b8cc31459dd26dacf00e710aae6128b (patch) | |
tree | d76034dd07d8dc54f6d2424b2fa3c647035b4120 /libjava/java | |
parent | ddef71730870b2c99da47b78acda77d5505c161e (diff) | |
download | gcc-13d7d8745b8cc31459dd26dacf00e710aae6128b.zip gcc-13d7d8745b8cc31459dd26dacf00e710aae6128b.tar.gz gcc-13d7d8745b8cc31459dd26dacf00e710aae6128b.tar.bz2 |
URLClassLoader.java (addURLImpl): Synchronize on the loader.
2005-09-08 Andrew Haley <aph@redhat.com>
* java/net/URLClassLoader.java (addURLImpl): Synchronize on the
loader.
(toString): Likewise.
From-SVN: r104095
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/net/URLClassLoader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/net/URLClassLoader.java b/libjava/java/net/URLClassLoader.java index 5d78db6..9f7126d 100644 --- a/libjava/java/net/URLClassLoader.java +++ b/libjava/java/net/URLClassLoader.java @@ -880,7 +880,7 @@ public class URLClassLoader extends SecureClassLoader private void addURLImpl(URL newUrl) { - synchronized (urlloaders) + synchronized (this) { if (newUrl == null) return; // Silently ignore... @@ -1111,7 +1111,7 @@ public class URLClassLoader extends SecureClassLoader */ public String toString() { - synchronized (urlloaders) + synchronized (this) { if (thisString == null) { |