yyjyc commented on issue #2005: URL: https://github.com/apache/fury/issues/2005#issuecomment-2589012534
@chaokunyang Thank you for your reply. I register **ProductPO.class** when serialization, register RateDetailPO.class、PersonRulePO.class、DailyInfoPO.class、DailyInfoList.class、GregorianCalendar.class、**com.ctrip.hotel.productsearchfilter.ProductPO.class** when deserialization. ProductPO.class is the same as com.ctrip.hotel.productsearchfilter.ProductPO.class except for the package name. I serialize a ProductPO object but get a RateDetailPO object, then cause the exception like 'class ...RateDetailPO cannot be cast to class ...ProductPO'. so,i have two questions: 1.package name must keep same between serialization and deserialization? 2.why i got a RateDetailPO object by deserialization ? i thought i would get a ProductPO object, -- 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]
