开发者

Deserializing into Object when class is in default package on android

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜