diff options
author | md_5 <git@md-5.net> | 2018-07-29 22:05:16 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-29 22:05:16 +1000 |
commit | 235aa19c407f548f8f9b75394b5012dc5b861820 (patch) | |
tree | 5ec456658e50c46cfb2c211638d307bf9dad8559 | |
parent | 2975358a021fe25d52a8103f7d7aaeceb3abf245 (diff) | |
download | bukkit-235aa19c407f548f8f9b75394b5012dc5b861820.tar bukkit-235aa19c407f548f8f9b75394b5012dc5b861820.tar.gz bukkit-235aa19c407f548f8f9b75394b5012dc5b861820.tar.lz bukkit-235aa19c407f548f8f9b75394b5012dc5b861820.tar.xz bukkit-235aa19c407f548f8f9b75394b5012dc5b861820.zip |
Throw CNFE if we have an error processing plugin classes
-rw-r--r-- | src/main/java/org/bukkit/plugin/java/PluginClassLoader.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java b/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java index 5eb42df3..a0fa3191 100644 --- a/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java +++ b/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java @@ -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) { |