mirror of
https://github.com/qi4L/JYso.git
synced 2026-09-22 06:50:42 +08:00
修复hessian
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user