SeasonPanPan commented on issue #11775:
URL: https://github.com/apache/dubbo/issues/11775#issuecomment-1465902172

   @wenshao 温老师,我不知道您在2.0.25上做了什么修复改动,可以分享吗?针对此问题并未生效。
   我测试和验证了这个问题,感觉应该在写入JSONWriter或者读取时FieldReader做改动。
   
1)代码在处理Arrays.ArrayList和普通ArrayList时,序列化ArrayList并没有写类名,但是Arrays.ArrayList当作普通类写入类名,读取时就会当作普通Object处理。
   这里我想到的解决方案是:**把所有List的实现都不写类名序列化**。我试了下可以生效。
   2)代码在反序列化时,asm生成的代码中,处理Arrays.ArrayList字段,当作普通JsonObject处理,所以专成了HashMap。
   这个我想到的解决方案是:**Arrays.ArrayList不使用autoType处理,由他自己的itemReader处理**。
   我试了可以生效,但是这个改动比较复杂,我把握不住全局。
   期待跟温老师更进一步交流😀。
   


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