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

Enum key for Map ignores SerializationFeature.WRITE_ENUMS_USING_INDEX #1570

Closed
unlimitedsola opened this issue Mar 21, 2017 · 2 comments
Closed
Milestone

Comments

@unlimitedsola
Copy link
Contributor

unlimitedsola commented Mar 21, 2017

Version: latest 2.8

Failing unit tests added here:
https://github.com/SolaKun/jackson-databind/commit/6e095f75edd1de3eb33be5950c56d562bd6d584a

Only java.util.Map test case provided, but doesn't work with EnumMap as well..

@unlimitedsola unlimitedsola changed the title EnumMap serialization ignores SerializationFeature.WRITE_ENUMS_USING_INDEX EnumMap/Map serialization ignores SerializationFeature.WRITE_ENUMS_USING_INDEX Mar 21, 2017
@cowtowncoder
Copy link
Member

Just to make sure I understand: this is when keys are Enums, not when values are Enums?

@unlimitedsola
Copy link
Contributor Author

yes

@cowtowncoder cowtowncoder added this to the 2.8.8 milestone Mar 26, 2017
@cowtowncoder cowtowncoder changed the title EnumMap/Map serialization ignores SerializationFeature.WRITE_ENUMS_USING_INDEX Enum key for Map ignores SerializationFeature.WRITE_ENUMS_USING_INDEX Mar 26, 2017
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