Commit 957e3aef by Tom Tromey Committed by Tom Tromey

ClassLoader.java (loadClass): Call loadClass on VMClassLoader, not findClass.

	* java/lang/ClassLoader.java (loadClass): Call loadClass on
	VMClassLoader, not findClass.

From-SVN: r58786
parent 2ff363e0
2002-11-03 Tom Tromey <tromey@redhat.com>
* java/lang/ClassLoader.java (loadClass): Call loadClass on
VMClassLoader, not findClass.
2002-11-03 Jeff Sturm <jsturm@one-point.com>
* resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): Remove.
......
......@@ -177,14 +177,18 @@ public abstract class ClassLoader
if (c == null)
{
try {
if (parent != null)
return parent.loadClass (name, link);
else
c = gnu.gcj.runtime.VMClassLoader.instance.findClass (name);
} catch (ClassNotFoundException ex) {
/* ignore, we'll try findClass */;
}
try
{
ClassLoader cl = parent;
if (parent == null)
cl = gnu.gcj.runtime.VMClassLoader.instance;
if (cl != this)
c = cl.loadClass (name, link);
}
catch (ClassNotFoundException ex)
{
/* ignore, we'll try findClass */;
}
}
if (c == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment