Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONNull is a singleton class implements Serializable, but don't have "readResolve" method #28

Open
eyougo opened this issue Jan 19, 2015 · 3 comments

Comments

@eyougo
Copy link

eyougo commented Jan 19, 2015

JSONNull is a singleton class implements Serializable, but don't have "readResolve" method.
So when serialize JSONNull object in Memcache, and deserializes it, it create a new JSONNull object instance, JSONUtil.isNull() can't judge this correctly.

About "readResolve" method, refer to: http://docs.oracle.com/javase/7/docs/platform/serialization/spec/input.html#5903
About singleton class implements Serializable, refer to:
http://stackoverflow.com/questions/3930181/how-to-deal-with-singleton-along-with-serialization

@aalmiray
Copy link
Collaborator

This is not an easy task to fix due to compatibility issues

@eyougo
Copy link
Author

eyougo commented Dec 16, 2015

Why?
Could you talk about some details, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@aalmiray @eyougo and others