This commit is contained in:
@@ -136,7 +136,7 @@ public final class ObjectEncoder<W extends Writer, T> implements Encodeable<W, T
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (factory.isReversible() && value.getClass() != this.typeClass) {
|
if (value.getClass() != this.typeClass) {
|
||||||
final Class clz = value.getClass();
|
final Class clz = value.getClass();
|
||||||
if (out.needWriteClassName()) out.writeClassName(factory.getEntityAlias(clz));
|
if (out.needWriteClassName()) out.writeClassName(factory.getEntityAlias(clz));
|
||||||
factory.loadEncoder(clz).convertTo(out, value);
|
factory.loadEncoder(clz).convertTo(out, value);
|
||||||
|
|||||||
Reference in New Issue
Block a user