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

第十二章,章节12.5,269页 Singleton代码未实现Serializable,会直接报NotSerializableException #213

Open
steeveen opened this issue Dec 7, 2024 · 1 comment

Comments

@steeveen
Copy link

steeveen commented Dec 7, 2024

No description provided.

@steeveen
Copy link
Author

那么这个例子放在这里用来说明序列化破坏单例模式就不恰当了。我直接单例类不实现Serializable接口就好了

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

1 participant