Skip to content
Snippets Groups Projects
Commit 55607188 authored by aph's avatar aph
Browse files

2005-09-08 Andrew Haley <aph@redhat.com>

	* java/net/URLClassLoader.java (addURLImpl): Synchronize on the
	loader.
	(toString): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104095 138bc75d-0d04-0410-961f-82ee72b054a4
parent 671ec72e
No related branches found
No related tags found
No related merge requests found
2005-09-08 Andrew Haley <aph@redhat.com>
* java/net/URLClassLoader.java (addURLImpl): Synchronize on the
loader.
(toString): Likewise.
2005-09-08 Andrew Haley <aph@redhat.com>
PR java/22084
......
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment