Skip to content
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

FAIL_ON_IGNORED_PROPERTIES does not throw on READONLY properties with an explicit name #2719

Closed
bidorffOL opened this issue May 13, 2020 · 0 comments · Fixed by #2720
Closed
Milestone

Comments

@bidorffOL
Copy link
Contributor

As mentioned in the title, FAIL_ON_IGNORED_PROPERTIES does not throw on properties annotated with @JsonProperty(value = 'XXX', access = JsonProperty.Access.READ_ONLY). I believe that it is because the implicit name of the property is added to the list of ignorals in POJOPropertiesCollector rather than the explicit names when at least one is available.

I have prepared a Pull Request for this issue, I'll provide it as soon as possible.

@cowtowncoder cowtowncoder changed the title FAIL_ON_IGNORED_PROPERTIES does not throw on READONLY properties with an explicit name FAIL_ON_IGNORED_PROPERTIES does not throw on READONLY properties with an explicit name May 17, 2020
@cowtowncoder cowtowncoder added this to the 2.12.0 milestone May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants