ghostly72 commented on issue #11157:
URL: https://github.com/apache/dubbo/issues/11157#issuecomment-3708337935

   hi, 
   I added a pr, trying to resolve this. Can u take a look at it? @CrazyHZM 
   PojoUtils.realize() ignored the generic parameter when deserializing 
Collection fields. As a result, it always converted elements as Object instead 
of using the declared element type from ParameterizedType. So i added an else 
block to correct generic element type from ParameterizedType and throw an early 
IllegalArgumentException if type conversion fails (instead of deferring it to 
user code). 
   
   And tested it using a unit test, mimicking this situation and got an illegal 
argument error as expected in the deserialization stage
   
   happy to hear suggestions and improvements
   thanks
   


-- 
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