Skip to content

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
@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