Skip to content

Commit

Permalink
hessian: black-box writeReplace fix && resin-admin cloud /threads pag…
Browse files Browse the repository at this point in the history
…e fix

git-svn-id: svn://svn.caucho.com/resin/trunk/modules/hessian@9170 9c94448d-38f1-0310-a231-d98308ff1ebf
  • Loading branch information
alex committed Apr 17, 2012
1 parent fa41274 commit 42caa81
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/com/caucho/hessian/io/JavaSerializer.java
Expand Up @@ -210,9 +210,25 @@ public void writeObject(Object obj, AbstractHessianOutput out)

// out.removeRef(obj);

/*
out.writeObject(repl);
out.replaceRef(repl, obj);
*/

//hessian/3a5a
int ref = out.writeObjectBegin(cl.getName());

if (ref < -1) {
writeObject10(repl, out);
} else {
if (ref == -1) {
writeDefinition20(out);
out.writeObjectBegin(cl.getName());
}

writeInstance(repl, out);
}

return;
}
Expand Down
1 change: 1 addition & 0 deletions src/com/caucho/hessian/io/WriteReplaceSerializer.java
Expand Up @@ -166,6 +166,7 @@ public void writeObject(Object obj, AbstractHessianOutput out)
}

_baseSerializer.writeObject(obj, out);

return;
}

Expand Down

0 comments on commit 42caa81

Please sign in to comment.