Skip to content
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

Change MKPE.parameter property to transient. #654

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Mar 21, 2023

Temporary workaround for #572

@@ -18,7 +18,9 @@ import kotlin.reflect.KParameter
),
DeprecationLevel.WARNING
)
class MissingKotlinParameterException(val parameter: KParameter,
// When deserialized by the JDK, the parameter property will be null, ignoring nullability.
// This is a temporary workaround for #572 and we will eventually remove this class.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per the comment, there is a problem that deserialization destroys null safety.
However, considering compatibility and the low importance of deserialization, I think this approach is better.

@k163377 k163377 merged commit cf23637 into FasterXML:2.15 Mar 22, 2023
@k163377 k163377 deleted the temp-fix-#572 branch March 22, 2023 13:15
k163377 added a commit to k163377/jackson-module-kotlin that referenced this pull request Mar 22, 2023
k163377 added a commit that referenced this pull request Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants