fixed a possible infinite loop. This doesn't eliminate the possibility that context classloader has UberClassLoader as an ancestor, but it fixes the problem Rama is seeing.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8868 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-04-27 00:27:13 +00:00
1 parent 4c2fec0dd9
commit b8dacb0637
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ public final class PluginManager {
// first, use the context classloader so that plugins that are loading
// can use its own classloader first.
ClassLoader cl = Thread.currentThread().getContextClassLoader();
if(cl!=null)
if(cl!=null && cl!=this)
try {
return cl.loadClass(name);
} catch(ClassNotFoundException e) {