-
-
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
@JsonIgnoreProperties
does not prevent Exception Conflicting getter/setter definitions for property
#426
Comments
Interesting. Yes, I see the problem here. There are some other related problems with conflict detection (false alarms), but this is bit different. |
Ok. One problem is that info on properties to ignore is not yet available at point in code. But, on the other hand, this particular code path should not quite require full resolution. Will see if I can work around it. |
Damn. Explicitly named ignorals are accessible by |
I, too am hitting this issue with jackson-databind 2.6.3. When I try to scan classes from Amazon's com.amazonaws.services.cloudformation.model package, some fail. An example is the com.amazonaws.services.cloudformation.model.Stack class, which defines:
Since this class comes from a third-party library, right now my only recourse is to create a proxy factory that produces objects with only one setter for any given property, which is pretty tedious. |
Yes,this is unfortunate. If it was easy to fix, it would have, but I hope a solution will be eventually found. |
Oh, for sure. Not a complaint, just logging another data point. I appreciate all the work you guys put in. |
…fundamentally problem still exists)
Looks like this actually works with 2.12, related to other changes I think. At least I can not reproduce the issue with simple changes here. Also of note: #1044 added a way to resolve issues as well (included in 2.7). |
@JsonIgnoreProperties
does not prevent Exception Conflicting getter/setter definitions for property
The use case is a base class which I could not change and I want to ignore the conflicting property (putting JsonIgnoreProperties in a child class). Should the JsonIgnoreProperties not prevent this exception?? This occurs in this simplified test scenario:
The Mapping class:
The Test:
This fails with Exception (cause) message:
The text was updated successfully, but these errors were encountered: