-
-
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
@JsonIgnore
on Record property ignored if there is getter override
#3992
Comments
can't you work around it by not doing this?
Have you tried add a |
@pjfanning In general I can change the code, but I thought it worth reporting since it has worked before |
@JsonIgnore
Sounds like a bug indeed if I would recommend using work-around @pjfanning suggests in the mean time. |
Exception looks like:
The Stackoverflow wouldn't happen if FasterXML/jackson-core#1055 is merged (you would get a StreamConstraintsException instead). There is a still the issue of why the JsonIgnore is not working properly. |
There are 2 issues here?:
2nd issue is same as #3948? |
Yeah I wonder if we should try to see if transient Fields removal really needs to happen at a later point, so that Although tbh there may be other problems this would cause wrt some users NOT wanting Still, due to existence of |
I think the question of propagation of |
Looks @yihtserns is right: case (2) is now resolved (that is, #3948 solved). |
@JsonIgnore
@JsonIgnore
on Record property ignored if there is getter override
Describe the bug
With v 2.15.x I run into
com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError)
. The code works with 2.14.2To Reproduce
Run the unit test below, see comments in the code
The text was updated successfully, but these errors were encountered: