-
-
Notifications
You must be signed in to change notification settings - Fork 229
@JacksonXmlRootElement
is ignored with Jackson 3
#757
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
Comments
try |
Thanks for the proposal, but I don't think I can configure that, since it will break other use cases (I am dealing here with Also no change of behavior seems documented for that between 2.x and 3.x in the Javadoc, and |
Sounds like potential bug. I assume 2.x refers to 2.19.0? I think there were some fixes wrt property name merging -- and perhaps namespace-only case was broken. Will need to look into this. |
I tested with 2.18.3 but that always worked on 2.x as far as I can tell. Seems also broken without mixins involved. |
Right, but what I am trying to figure out is whether it broke with 2.19 or 3.0. Has not been reported for 2.19 fwtw. And none of XML changes in https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.19 sound suspicious. I can check this later on when I have time, just thought to confirm version you used. |
Just tested, can't reproduce with Jackson |
Thanks! |
@sdeleuze Looks like reproduction is incomplete: it is missing Also ideally I think we'd have minimal reproduction (just remove all but one of fields for POJO). |
Hum, I think I understand what happens now. |
Ah. Yeah, in-module annotations (jackson-databind has some too) are bit challenging as unlike |
With Jackson
3.0.0-rc4
:Jackson 2.x prints as expected:
Jackson 3.x ignores the
@JacksonXmlRootElement
annotation and prints:This is breaking Spring support for RFC 9457.
The text was updated successfully, but these errors were encountered: