-
-
Notifications
You must be signed in to change notification settings - Fork 177
Problems with no-arg plugin + JsonIgnore + Kotlin 1.1 #61
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
Comments
thanks, I'll look at it. |
We had a similar issue with Kotlin 1.0.6 and Jackson 2.8.7. |
@mhlz a side note, in your code you can do:
or
instead of passing |
@cowtowncoder this one is odd, the plugin does the same behavior as it has done for a long time, but with databind 2.8.7 it breaks, while in 2.8.6 it works fine. The plugin says that there is a creator annotation on the correct constructor, and has returned the correct name for the parameters including the one that it says is missing. I don't have a java-only reproducible case, but you can debug the above linked project (intellij+kotlin plugin, load pom.xml and debug the databinding code). Kotlin module works at 2.8.6 or 2.8.7 versions, it is only the databind version number change that breaks the process. |
This is fixed in |
I tried updating an internal project to Kotlin 1.1, but I encountered an issue with one of our data classes. It seems that in some circumstances deserializing doesn't work even though it worked fine with Kotlin 1.0.6.
I uploaded a minimal example project that demonstrates the error here: https://github.com/mhlz/jackson-module-kotlin-issue
If you change the kotlin.version property in the pom.xml to 1.0.6 it works fine. But with 1.1.0 it crashes with the following exception:
I figured out that removing the
@field:JsonIgnore
annotation makes the exception go away. The same thing happens with@get:JsonIgnore
as well.I hope the example project gives enough info to debug this issue properly, as I have no idea what could cause this problem.
After investigating more this issue does not occur with module-kotlin 2.8.6 and databind 2.8.6. Those work fine with Kotlin 1.1.
The text was updated successfully, but these errors were encountered: