mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 02:27:56 +01:00
Add test fix for library classes being visible to non-dependent plugins
This commit is contained in:
parent
53ce6b93a2
commit
6613aaea95
@ -63,7 +63,13 @@ final class PluginClassloader extends URLClassLoader
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return super.loadClass( name, resolve );
|
Class<?> result = super.loadClass( name, resolve );
|
||||||
|
|
||||||
|
// SPIGOT-6749: Library classes will appear in the above, but we don't want to return them to other plugins
|
||||||
|
if ( checkOther || result.getClassLoader() == this )
|
||||||
|
{
|
||||||
|
return result;
|
||||||
|
}
|
||||||
} catch ( ClassNotFoundException ex )
|
} catch ( ClassNotFoundException ex )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user