-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dubbo 序列化问题.有谁遇到过吗 #280
Comments
因为hessian 序列化只支持HashMap,详见:com.alibaba.com.caucho.hessian.io.MapSerializer#writeObject(Object obj, AbstractHessianOutput out) if (cl.equals(HashMap.class)
|| ! _isSendJavaType
|| ! (obj instanceof java.io.Serializable))
out.writeMapBegin(null);
else
out.writeMapBegin(obj.getClass().getName()); |
The native Map from jdk is ok So occurs bug @Test
public void testImmutableBiMapSerializer() throws Exception {
Map<Integer, String> map = new ImmutableMap.Builder<Integer, String>()
.put(30, "30")
.put(43, "30").build();
Map<Integer, String> deserialize = baseHessianSerialize(map);
Assert.assertTrue(deserialize.equals(map));
}
|
@lovepoem Do we have anything to do with this issue? |
No,it's not very easy to support the special Map from guava, I suggest to use Map from jdk in the business interface |
ok, I am closing it now. |
Dubbo has a problem in parsing
to a service the received map is deserialized as this |
fk!!!! |
The text was updated successfully, but these errors were encountered: