diff options
-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) { |