-
Notifications
You must be signed in to change notification settings - Fork 173
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
MissingKotlinParameterException contains non-serializable KParameterImpl, breaking Throwable contract #572
Comments
We are considering deprecating |
Aside from deprecation, if reference is directly from MKPR, perhaps that reference could be changed to |
temporary workaround for FasterXML#572
@cowtowncoder |
@jeromewaibel Would this be a problem in your use case? |
@k163377 This should be fine for me. |
#654 has been merged. |
Describe the bug
This bug is an offspring of spring-projects/spring-kafka#2306
As described there spring-kafka tries to serialize exceptions, which fails with
To Reproduce
Expected behavior
As MissingKotlinParameterException implements Serializable it should be serializable without any execptions.
Three options:
a) make KParameter property transient
b) implement special handling of non-serializable properties by implemeting writeObject/readObject
c) Request the kotlin people to implement KParameter classes as serializable
Versions
Kotlin: 1.7.0
Jackson-module-kotlin: 2.13.3
Jackson-databind: 2.13.3
The text was updated successfully, but these errors were encountered: