You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Underlying reason is actually bit more complex: for @JsonTypeInfo, "write-next-as-attribute" is set, but not cleared before writing out properties. Ideally that should be done; but for now I am just forcing "any-getter" properties to be written out as elements. There probably ought to be a way to allow writing them as attributes; but work-around has to do for now; and specifically fixes unit test shown below.
For the following class:
For the code:
Since we have
@JacksonXmlProperty(isAttribute = false)
, we expect:But we have:
Test case to add in
com.fasterxml.jackson.dataformat.xml.ser.TestSerializationAttr
I believe the problem resides somewhere in XmlSerializerBase constructor where the _attributeCount does not take into account the @JsonAnyGetter.
The text was updated successfully, but these errors were encountered: