-
Notifications
You must be signed in to change notification settings - Fork 31
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
Deserialization issues with 0.90.2+ #254
Comments
I've confirmed the issue. It is a caching issue. To get it to work you can disable the cache using (or with whatever policy configuration you use): XML {
indent = 4
defaultPolicy {
formatCache = FormatCache.Dummy
}
} |
I've analysed it. And the key reason is that |
…use side) element names, rather than only the serial names of the element types. This fixes pdvrieze/xmlutil#254.
This needs "fixing" in the serialization library itself. In the meantime consider that having two types with equal |
underlying library (a pull request has been submitted: Kotlin/kotlinx.serialization#2862) for a fix. In the meantime either disabling the cache or using `@XmlSerialName` instead of `@SerialName` will fix it.
Makes sense, thanks for investigating! |
This problem occurs with 0.90.2 and 0.90.3. See the following example:
This will print the following XML:
Note how in
OtherParent
/element
the tag is<a>
, even though it should be<b>
.The text was updated successfully, but these errors were encountered: