开发者

Deserializing into Object when class is in default package on android

开发者 https://www.devze.com 2023-01-10 21:24 出处:网络
I have an application that queries a server (not under my con开发者_运维问答trol). The server returns a serialized object. I have the model for the class - however the problem is that the class is in

I have an application that queries a server (not under my con开发者_运维问答trol). The server returns a serialized object. I have the model for the class - however the problem is that the class is in "default package"... something not recognizable by Android ClassLoader.

How can I resolve this issue?


And tell whoever created the class, possibly yourself, that Java classes within packages haven't been able to access classes not within packages since Java 1.4 came out, about eight years ago. Put the class into a package.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号