Don't infinite loop.
This commit is contained in:
parent
5e3a3d438a
commit
b923ea847b
@ -20,6 +20,8 @@ public class PluginClassloader extends URLClassLoader
|
||||
protected Class<?> findClass(String name) throws ClassNotFoundException
|
||||
{
|
||||
for (PluginClassloader loader : allLoaders)
|
||||
{
|
||||
if (loader != this)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -28,6 +30,7 @@ public class PluginClassloader extends URLClassLoader
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new ClassNotFoundException();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user