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

XmlSerializerProvider does not use withRootName config for null #213

Closed
gitlabbtr opened this issue Oct 20, 2016 · 2 comments
Closed

XmlSerializerProvider does not use withRootName config for null #213

gitlabbtr opened this issue Oct 20, 2016 · 2 comments
Milestone

Comments

@gitlabbtr
Copy link

In jackson-dataformat-xml/src/main/java/com/fasterxml/jackson/dataformat/xml/ser/XmlSerializerProvider.java

Line 203, I think _rootNameFromConfig() should be used if available instead of ROOT_NAME_FOR_NULL, so that withRootName() config can be used.

I don't know whether/how deser would be affected

_initWithRootName((ToXmlGenerator) jgen, ROOT_NAME_FOR_NULL);

@cowtowncoder
Copy link
Member

cowtowncoder commented Nov 15, 2016

I'd need to understand more what the problem here is: what is not working, and how to reproduce the issue. Is this just the question of serialization of root-level null not using wrapping as expected?

@cowtowncoder
Copy link
Member

Ok, I think I am able to reproduce what is being seen.

@cowtowncoder cowtowncoder modified the milestones: 2.8.0, 2.8.5 Nov 15, 2016
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