SPIGOT-6822: Ensure library loader has same parent as plugin loader

This behaviour may need to be revisted in future to achieve greater isolation of plugins/libraries
This commit is contained in:
md_5 2021-12-01 10:29:25 +11:00
parent b46ac671a3
commit fc0fe05559
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -121,7 +121,7 @@ class LibraryLoader
} );
}
URLClassLoader loader = new URLClassLoader( jarFiles.toArray( new URL[ jarFiles.size() ] ) );
URLClassLoader loader = new URLClassLoader( jarFiles.toArray( new URL[ jarFiles.size() ] ), getClass().getClassLoader() );
return loader;
}