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

serializing a mutable.Map with a default value loses the default value #221

Open
dirkgr opened this issue Mar 14, 2015 · 2 comments
Open

Comments

@dirkgr
Copy link

dirkgr commented Mar 14, 2015

I have some sample code here: https://gist.github.com/dirkgr/bc0e8b547015db9e67c7

In short, the code creates a scala.collections.mutable.HashMap and adds a default value. When round-tripping it through a chill file, it loses the default value.

@dirkgr
Copy link
Author

dirkgr commented Mar 14, 2015

It seems this is serialized by TraversableSerializer, which ignores the default value.

@johnynek
Copy link
Collaborator

Thanks for the bug-report. It would be good to fix this. I guess other maps may have the same issue, but defaults are just not that often used.

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

2 participants