Closed evoelise closed 5 months ago
Wrong repo, will move.
This should work, but unfortunately due to implementation details, "inner" element name is used as a key leading to the problem. So while wrapper names differ, they are not used for fetching property information. I think there is probably an issue here already... I think #27 is same as this one.
I am not sure there is a work-around available, unfortunately.
@cowtowncoder Thanks for moving to the correct repo & your answer. Also I can confirm it looks like the same issue as #27. I did search for the issue but didn't find it when I looked. It's not encouraging that #27 has been open since 2012 but I am happy for this to be closed as a duplicate.
Yes, it is unfortunate one and there is no work on-going to resolve it (PRs welcome as usual, but aside). Closing as dup of #27.
Apologies for the severe redaction in code examples & reported errors.
I am getting the following exception with Jackson v2.13.4:
It should be possible to have XML that contains different named list elements that contain the same named list items, for example:
To this end I have set up something similar to the following Java code:
I believe this should work - but if we do this we get an error stating the there are conflicting getter definitions even though the getters are for different list properties. Should the libraries realise that even though the same named
JacksonXmlProperty
are used these are part of different elements due to the different namedJacksonXmlElementWrapper
s?Am I correct that this should work and this is an issue - or am I missing something and I should code or annotate this in a different way?