mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Throw ClassNotFoundException without delegation
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a36a08cdd0
commit
6c92a5d111
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…
Reference in a new issue