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