Skip to content

Commit

Permalink
Fix hessian4 (#9981)
Browse files Browse the repository at this point in the history
  • Loading branch information
guohao authored Apr 29, 2022
1 parent c4847d5 commit bce439e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bce439e

Please sign in to comment.