mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
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:
parent
b46ac671a3
commit
fc0fe05559
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue