Commit 6a5d24d7 by Tom Tromey Committed by Tom Tromey

ClassLoader.java (loadClass): Resolve class even if it was already found.

	* java/lang/ClassLoader.java (loadClass): Resolve class even if
	it was already found.

From-SVN: r97565
parent d4e1591f
2005-04-04 Tom Tromey <tromey@redhat.com>
* java/lang/ClassLoader.java (loadClass): Resolve class even if
it was already found.
2005-04-04 Tom Tromey <tromey@redhat.com>
* java/net/URL.java (DEFAULT_SEARCH_PATH): Added
org.metastatic.jessie.
......
......@@ -285,9 +285,8 @@ public abstract class ClassLoader
{
// Have we already loaded this class?
Class c = findLoadedClass(name);
if (c != null)
return c;
if (c == null)
{
// Can the class be loaded by a parent?
try
{
......@@ -307,6 +306,7 @@ public abstract class ClassLoader
}
// Still not found, we have to do it ourself.
c = findClass(name);
}
if (resolve)
resolveClass(c);
return c;
......
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