-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
JsonProperty.Access.READ_ONLY
fails with collections when a property name is specified
#2283
Comments
Thank you for reporting this. I hope to have a look relatively soon. |
…MapperFeature.USE_GETTERS_AS_SETTERS and renaming properties
I went ahead and did my best at fixing this myself and put in a new test and pull request. I'm sure it's not quite up-to-par, but hopefully it can help you get started. |
Relatively soon was not to happen, but issue is on W-I-P/TODO list at https://github.com/FasterXML/jackson-future-ideas/wiki/Jackson-Work-in-Progress |
Added (failing) unit test from #2284, to make it easier to solve this, whether by using (parts of) PR or not. |
JsonProperty.Access.READ_ONLY
fails with collections when a property name is specified
Very similar issue to #1805, but when a property name is specified and
MapperFeature.USE_GETTERS_AS_SETTERS
is enabled:Fails with
com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.UnsupportedOperationException) (through reference chain: com.fasterxml.jackson.databind.deser.ReadOnlyDeserWithNameTest$Foo["list"]->java.util.Collections$UnmodifiableRandomAccessList[0])
Here's the test:
The text was updated successfully, but these errors were encountered: