mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-18 06:38:31 +01:00
#2775: Fix LinkageError loading plugin dependency classes
This commit is contained in:
parent
4363315ec5
commit
8ea25a8fc7
@ -32,16 +32,16 @@ final class PluginClassloader extends URLClassLoader
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Class<?> findClass(String name) throws ClassNotFoundException
|
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
|
||||||
{
|
{
|
||||||
return findClass0( name, true );
|
return loadClass0( name, resolve, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
private Class<?> findClass0(String name, boolean checkOther) throws ClassNotFoundException
|
private Class<?> loadClass0(String name, boolean resolve, boolean checkOther) throws ClassNotFoundException
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return super.findClass( name );
|
return super.loadClass( name, resolve );
|
||||||
} catch ( ClassNotFoundException ex )
|
} catch ( ClassNotFoundException ex )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ final class PluginClassloader extends URLClassLoader
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return loader.findClass0( name, false );
|
return loader.loadClass0( name, resolve, false );
|
||||||
} catch ( ClassNotFoundException ex )
|
} catch ( ClassNotFoundException ex )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user