提交 e3a58d8c 编写于 作者: K kohsuke

fixed a serialization problem

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17607 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a4412a93
......@@ -31,6 +31,7 @@ import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.ArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
......@@ -75,6 +76,8 @@ public class CLI {
if(cli.protocolVersion()!=CliEntryPoint.VERSION) {
System.err.println(Messages.CLI_VersionMismatch());
} else {
// Arrays.asList is not serializable --- presumably a bug in JRE.
args = new ArrayList<String>(args);
r = cli.main(args, Locale.getDefault(), new RemoteInputStream(System.in),
new RemoteOutputStream(System.out), new RemoteOutputStream(System.err));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册