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

Fix JacksonInject priority #738

Merged
merged 3 commits into from
Dec 9, 2023
Merged

Fix JacksonInject priority #738

merged 3 commits into from
Dec 9, 2023

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Dec 9, 2023

fixes #722

val paramType = paramDef.type
var paramVal = if (!isMissing || paramDef.isPrimitive() || jsonProp.hasInjectableValueId()) {
var paramVal = if (!isMissing || jsonProp.hasInjectableValueId()) {
Copy link
Contributor Author

@k163377 k163377 Dec 9, 2023

Choose a reason for hiding this comment

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

#739

Removed the decision because jsonProp.valueDeserializer?.getAbsentValue(ctxt) provides the same functionality as this branch.
The following test confirms that it fails if FAIL_ON_NULL_FOR_PRIMITIVES is set.
https://github.com/FasterXML/jackson-module-kotlin/pull/738/files#diff-d8cb2007657572bfaed68d85f55829d211695e1f181981499dcb6a3a72516472

@k163377 k163377 merged commit cf890c6 into FasterXML:2.17 Dec 9, 2023
12 checks passed
@k163377 k163377 deleted the fix-github722 branch December 9, 2023 11:11
k163377 added a commit to k163377/jackson-module-kotlin that referenced this pull request Dec 10, 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.

If a default value is defined, JacksonInject is ignored.
1 participant