修复hessian

This commit is contained in:
qi4L
2024-08-13 10:52:53 +08:00
parent ff8fe79cb7
commit 993a923828
9 changed files with 3 additions and 1 deletions
@@ -51,12 +51,14 @@ public class Serializer implements Callable<byte[]> {
NoWriteReplaceSerializerFactory sf = new NoWriteReplaceSerializerFactory();
sf.setAllowNonSerializable(true);
AobjOut.setSerializerFactory(sf);
AobjOut.writeObject(obj);
AobjOut.close();
}else {
objOut = new ObjectOutputStream(out);
}
if (IS_Hessian1 || IS_Hessian2) {
AobjOut.writeObject(AobjOut);
AobjOut.writeObject(obj);
} else {
objOut.writeObject(obj);
}