This commit is contained in:
Redkale
2018-07-13 06:46:55 +08:00
parent 1c88fb0355
commit 1ce97aa20d

View File

@@ -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();
if (out.needWriteClassName()) out.writeClassName(factory.getEntityAlias(clz));
factory.loadEncoder(clz).convertTo(out, value);