uuuyuqi commented on PR #16198: URL: https://github.com/apache/dubbo/pull/16198#issuecomment-4234309627
@zrlw Fixed. The previous implementation passed all generic type arguments as `expectedTypes` to `readObject(Class, Class<?>...)`, but the `expectedTypes` mechanism in hessian-lite only works for primitive types. For complex POJOs (like `User`), it bypasses tag-driven deserialization and causes `HessianProtocolException`. Now only `isPrimitive()` types are passed as `expectedTypes`, consistent with hessian-lite's `FieldDeserializer2Factory`. POJO types fall back to default tag-driven deserialization and are not affected. -- 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]
