-
Notifications
You must be signed in to change notification settings - Fork 643
InvalidMutabilityException when deserializing objects with UNKNOWN fields #1502
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
I have this issue too while upgrading a huge KMP project from even older versions of everything, I'll try version 1.1.0 for now, thanks for this report :) Here is a stacktrace I just got, seems to be matching:
|
Duplicate of #1450. You сan disable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is happening when running for native when class is frozen, if you are deserializing a json that have UNKNOWN fields (which should be common in a non strict handling given that we might not want to deserialize some fields from a json response).
I see here which is added 6 days ago could be mutating the map in
DescriptorSchemaCache
.To Reproduce
If you run native for the test below it will fail with an InvalidMutabilityException.
Expected behavior
If I run this on 1.1.0 it passes. Is there a change that I missed in 1.2.1? Or is my configuration wrong?
Environment
The text was updated successfully, but these errors were encountered: