-
Notifications
You must be signed in to change notification settings - Fork 117
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
ParameterNamesModule + JsonCreator + inheritance cause deserialization errors #49
Comments
Hmm... This only repros in eclipse for me, running eclipse 4.6.2. I'm guessing that the version of ecj bundled with that eclipse version isn't supporting parameter name reflection the same way javac does. |
Odd. It seems that static method with delegation should work. But you may want to add explicit Also: when reporting problems please indicate Jackson version in question (... and if not latest patch of minor version, try out the latest patch, since I'll ask for that anyway :) ) |
Version is 2.9.2. With mode = DELEGATING it works in eclipse. I'm trying to get it to compile with ecj in gradle and run that, not sure if I've done it right, but I haven't gotten that to fail yet. |
Stepping through a debugger in eclipse, I see in
Both
This ends up passing through both if blocks and setting a property creator instead of going through |
@twilson-palantir I have a feeling that one of fixes for FasterXML/jackson-databind#1853 I am hoping to release |
I'm a bit skeptical that will help since when it gets to
it ends up calling I'm not familiar with building maven projects though and I can't find any build instructions anywhere. Just running
|
Explicit will ever occur with In the end I think that adding explicit |
I'm ok with adding the I'm less ok with the actual error that got returned since it's simply wrong, there is a string-argument factory constructor. Based on the error I have no way of knowing I might want to set I'm also less ok with this working differently in eclipse and gradle with no explanation as to why they differ. In both cases I ran ecj, I also ran with |
I don't know how to resolve this for 3.0, either; with one exception that rule for selecting in ambiguous case can be simplified to ALWAYS be Delegating OR ALWAYS Properties-based. |
Running
results in
It works correctly if ParamterNamesModule is removed, or if Foo and FooImpl are combined.
The text was updated successfully, but these errors were encountered: