提交 6a2caa3f 编写于 作者: K kohsuke

failure to load may show up as a LinkageError, instead of...

failure to load may show up as a LinkageError, instead of ClassNotFoundException if it's one of the dependencies that have failed to load.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16790 71c3de6d-444a-0410-be80-ed276b4c234a
上级 afb811f4
......@@ -202,6 +202,8 @@ public class ClassicPluginStrategy implements PluginStrategy {
throw new IOException(className+" doesn't extend from hudson.Plugin");
}
wrapper.setPlugin((Plugin) o);
} catch (LinkageError e) {
throw new IOException2("Unable to load " + className + " from " + wrapper.getShortName(),e);
} catch (ClassNotFoundException e) {
throw new IOException2("Unable to load " + className + " from " + wrapper.getShortName(),e);
} catch (IllegalAccessException e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册