ClassNotFoundException when deserializing a binary class file's contents

前端 未结 7 1704
[愿得一人]
[愿得一人] 2021-01-12 16:32

I don\'t know much about Java. I\'m trying to read a file containing an int and various instances of a class called \"Automobile\". When I deserialize it, though, the progra

相关标签:
7条回答
  • 2021-01-12 17:07

    You can access the class name from the message of the ClassNotFound exception - it's horrible to depend on this in the code - but it should give you some idea. I wish there were some better way of getting information about serialised objects without having to have the class available.

    0 讨论(0)
提交回复
热议问题