geforkt von Mirrors/Paper
Throw ClassNotFoundException without delegation
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
a36a08cdd0
Commit
6c92a5d111
@ -116,14 +116,10 @@ final class PluginClassLoader extends URLClassLoader {
|
|||||||
CodeSource source = new CodeSource(url, signers);
|
CodeSource source = new CodeSource(url, signers);
|
||||||
|
|
||||||
result = defineClass(name, classBytes, 0, classBytes.length, source);
|
result = defineClass(name, classBytes, 0, classBytes.length, source);
|
||||||
}
|
|
||||||
|
|
||||||
if (result == null) {
|
|
||||||
result = super.findClass(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (result != null) {
|
|
||||||
loader.setClass(name, result);
|
loader.setClass(name, result);
|
||||||
|
} else {
|
||||||
|
throw new ClassNotFoundException(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren