Skip to content
Permalink
Browse files
Fix hessian4 (#9981)
  • Loading branch information
guohao committed Apr 29, 2022
1 parent c4847d5 commit bce439e6a3969d86fba595df33a71655cfa5ace7
Showing 1 changed file with 3 additions and 3 deletions.
@@ -444,12 +444,12 @@ public Object unpack(byte[] data) throws IOException, ClassNotFoundException {
TripleWrapper.TripleRequestWrapper wrapper = TripleWrapper.TripleRequestWrapper.parseFrom(
data);
Object[] ret = new Object[wrapper.getArgsCount()];
final String serializeType = convertHessianFromWrapper(wrapper.getSerializeType());
((WrapResponsePack) responsePack).serialize = serializeType;
((WrapResponsePack) responsePack).serialize = wrapper.getSerializeType();
for (int i = 0; i < wrapper.getArgsList().size(); i++) {
ByteArrayInputStream bais = new ByteArrayInputStream(
wrapper.getArgs(i).toByteArray());
ret[i] = serialization.deserialize(url, serializeType, wrapper.getArgTypes(i),
ret[i] = serialization.deserialize(url, wrapper.getSerializeType(),
wrapper.getArgTypes(i),
bais);
}
return ret;

0 comments on commit bce439e

Please sign in to comment.