-
-
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
Parameter names module gets confused with delegate creator which is a static method #1001
Comments
Discussed at |
Ok yes, I can reproduce the issue as described. I think this is once more related to need to refactor/rewrite creator handling code; something that I had hoped to do with 2.7, but that was delayed by rewrite of the type handling (which is an older problem, FIFO). Not sure if this could be fixed with something smaller; but at least now there is a unit test that reproduces issue with delegating creator, implicit parameter names (but without requiring parameter names -- I just define custom |
Any word on a fix for this? |
Would benefit from this fix as well. |
Seems to be fixed; guessing it's due to #1383 fix that goes in 2.8.4 (and was included in 2.7.8) |
Java 8, with -parameters, Jackson 2.6.3, and using the parameter names module: A deserialization into a pojo that has a single parameter @JsonCreator static method fails because it is apparently looking for a creator property instead of treating it like a delegate creator.
In this example there is no property with the implied name. As a gist, see here, which actually has two problems in it. This is the problem with class D:
Stack trace looks like this:
The text was updated successfully, but these errors were encountered: