Skip to content

Commit

Permalink
correction x-stream#76 x-stream#77: recursive call when class differs…
Browse files Browse the repository at this point in the history
… only. See ObjectOutputStream
  • Loading branch information
ca-stefan-cordes committed Oct 27, 2016
1 parent 3339653 commit 52988a4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ public Object callReadResolve(final Object result) {
public Object callWriteReplace(final Object object) {
Object replaced;
replaced=callWriteReplaceMethod(object);
if (replaced != object) {
if (!object.getClass().equals(replaced.getClass())) {
// call further writeReplace methods on replaced.
// see for (;;) in java.io.ObjectOutputStream.writeObject0(Object, boolean)
return callWriteReplace(replaced);
Expand Down

0 comments on commit 52988a4

Please sign in to comment.