How to deserialize from a file to different class

前端 未结 2 863
無奈伤痛
無奈伤痛 2021-01-12 21:49

I serialize a ArrayList list to a file and transmitted the file to another system in another machine.

And since it\'s a differ

2条回答
  •  误落风尘
    2021-01-12 22:45

    I don't have the same packageA.Changelog class, instead is a packageB.Changelog which has exactly same structure but in different package.

    Why? This is the problem. Don't do that.

提交回复
热议问题