提交 862a646c 编写于 作者: K kohsuke

bug fix in the remoting mechanism.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2126 71c3de6d-444a-0410-be80-ed276b4c234a
上级 feaf22ae
......@@ -104,11 +104,17 @@ final class UserResponse<RSP,EXC extends Throwable> implements Serializable {
}
public RSP retrieve(Channel channel, ClassLoader cl) throws IOException, ClassNotFoundException, EXC {
Object o = new ObjectInputStreamEx(new ByteArrayInputStream(response), cl).readObject();
if(isException)
throw (EXC)o;
else
return (RSP) o;
Channel old = Channel.setCurrent(channel);
try {
Object o = new ObjectInputStreamEx(new ByteArrayInputStream(response), cl).readObject();
if(isException)
throw (EXC)o;
else
return (RSP) o;
} finally {
Channel.setCurrent(old);
}
}
private static final long serialVersionUID = 1L;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册