Skip to content

Commit

Permalink
IGNITE-8926 : Fixed nested binary writers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilantukh authored and mcherkasov committed Aug 9, 2018
1 parent a7dfedd commit f2fe3e2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ public void doWriteObject(@Nullable Object obj) throws BinaryObjectException {
else {
BinaryWriterExImpl writer = new BinaryWriterExImpl(ctx, out, schema, handles());

writer.failIfUnregistered(failIfUnregistered);

writer.marshal(obj);
}
}
Expand Down Expand Up @@ -1499,6 +1501,8 @@ void writeBinaryObjectField(@Nullable BinaryObjectImpl po) throws BinaryObjectEx
else {
BinaryWriterExImpl writer = new BinaryWriterExImpl(ctx, out, schema, null);

writer.failIfUnregistered(failIfUnregistered);

writer.marshal(obj);
}
}
Expand Down Expand Up @@ -1922,6 +1926,8 @@ boolean tryWriteAsHandle(Object obj) {
public BinaryWriterExImpl newWriter(int typeId) {
BinaryWriterExImpl res = new BinaryWriterExImpl(ctx, out, schema, handles());

res.failIfUnregistered(failIfUnregistered);

res.typeId(typeId);

return res;
Expand Down

0 comments on commit f2fe3e2

Please sign in to comment.