uuuyuqi commented on issue #104:
URL: 
https://github.com/apache/dubbo-hessian-lite/issues/104#issuecomment-4168907790

   补充一下,上面说的 `_staticTypeMap` 方案不太合适,因为这个 map 是给 Hessian 协议的短类型名(如 `"boolean"`, 
`"string"`)用的,不适合放完整类名。
   
   更好的方式应该是修改 `loadSerializedClass` 或 `getDeserializer(String type)`,对 hessian 
自身的类用 `SerializerFactory.class.getClassLoader()` 加载:
   
   ```java
   if (type.startsWith("com.alibaba.com.caucho.hessian.io.")) {
       return Class.forName(type, false, 
SerializerFactory.class.getClassLoader());
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to