mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
Throw CNFE if we have an error processing plugin classes
This commit is contained in:
parent
2975358a02
commit
235aa19c40
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@ final class PluginClassLoader extends URLClassLoader {
|
|||
throw new ClassNotFoundException(name, ex);
|
||||
}
|
||||
|
||||
classBytes = loader.server.getUnsafe().processClass(description, classBytes);
|
||||
try {
|
||||
classBytes = loader.server.getUnsafe().processClass(description, classBytes);
|
||||
} catch (Exception ex) {
|
||||
throw new ClassNotFoundException(name, ex);
|
||||
}
|
||||
|
||||
int dot = name.lastIndexOf('.');
|
||||
if (dot != -1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue