提交 509950e9 编写于 作者: K kohsuke

Fixed a bug in CLI where the state of command executions may interfere with each other.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18852 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3c0516f1
......@@ -186,8 +186,10 @@ public abstract class CLICommand implements ExtensionPoint, Cloneable {
for (CLICommand cmd : all()) {
if(name.equals(cmd.getName())) {
try {
return (CLICommand)cmd.clone();
} catch (CloneNotSupportedException e) {
return cmd.getClass().newInstance();
} catch (IllegalAccessException e) {
throw new AssertionError(e);
} catch (InstantiationException e) {
throw new AssertionError(e);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册