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