mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Throw ClassNotFoundException without delegation
This commit is contained in:
parent
20971610da
commit
6d6f0c7fda
1 changed files with 2 additions and 6 deletions
|
@ -116,14 +116,10 @@ final class PluginClassLoader extends URLClassLoader {
|
|||
CodeSource source = new CodeSource(url, signers);
|
||||
|
||||
result = defineClass(name, classBytes, 0, classBytes.length, source);
|
||||
}
|
||||
|
||||
if (result == null) {
|
||||
result = super.findClass(name);
|
||||
}
|
||||
|
||||
if (result != null) {
|
||||
loader.setClass(name, result);
|
||||
} else {
|
||||
throw new ClassNotFoundException(name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue