提交 167f181c 编写于 作者: K kohsuke

noting where the exports are unexported

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15319 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9948a1cf
......@@ -123,7 +123,7 @@ public final class Pipe implements Serializable {
if(in!=null && out==null) {
// remote will write to local
PipedOutputStream pos = new PipedOutputStream((PipedInputStream)in);
int oid = Channel.current().export(pos,false);
int oid = Channel.current().export(pos,false); // this export is unexported in ProxyOutputStream.finalize()
oos.writeBoolean(true); // marker
oos.writeInt(oid);
......
......@@ -77,7 +77,7 @@ public final class RemoteOutputStream extends OutputStream implements Serializab
}
private void writeObject(ObjectOutputStream oos) throws IOException {
int id = Channel.current().export(core,false);
int id = Channel.current().export(core,false); // this export is unexported in ProxyOutputStream.finalize()
oos.writeInt(id);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册