提交 ff345824 编写于 作者: K kohsuke

[FIXED HUDSON-3077]

This was caused by the serialization format change, masked by the manual serialVersionUID for the given class. This is only an issue when the version of slave.jar on the slave and the master disagrees, but then, that is often a common case when people upgrade the master.

I modified the code to restore the serialization format compatibility with versions of ProxyOutputStream prior to rev.15081.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15767 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c6772d62
......@@ -203,7 +203,7 @@ final class ProxyOutputStream extends OutputStream {
* Unlike {@link EOF}, this just unexports but not closes the stream.
*/
private static class Unexport extends Command {
protected final int oid;
private final int oid;
public Unexport(int oid) {
this.oid = oid;
......@@ -223,11 +223,14 @@ final class ProxyOutputStream extends OutputStream {
/**
* {@link Command} for sending EOF.
*/
private static final class EOF extends Unexport {
private static final class EOF extends Command {
private final int oid;
public EOF(int oid) {
super(oid);
this.oid = oid;
}
protected void execute(Channel channel) {
OutputStream os = (OutputStream) channel.getExportedObject(oid);
channel.unexport(oid);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册