Don't infinite loop.

This commit is contained in:
md_5 2013-02-01 20:32:34 +11:00
parent 5e3a3d438a
commit b923ea847b

View File

@ -21,11 +21,14 @@ public class PluginClassloader extends URLClassLoader
{
for (PluginClassloader loader : allLoaders)
{
try
{
return loader.loadClass(name);
} catch (ClassNotFoundException ex)
if (loader != this)
{
try
{
return loader.loadClass(name);
} catch (ClassNotFoundException ex)
{
}
}
}
throw new ClassNotFoundException();