Skip to content

Fix JacksonInject priority - #738

Merged
k163377 merged 3 commits into
FasterXML:2.17from
k163377:fix-github722
Dec 9, 2023
Merged

Fix JacksonInject priority#738
k163377 merged 3 commits into
FasterXML:2.17from
k163377:fix-github722

Conversation

@k163377

@k163377 k163377 commented Dec 9, 2023

Copy link
Copy Markdown
Contributor

fixes #722


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

@k163377 k163377 Dec 9, 2023

Copy link
Copy Markdown
Contributor Author

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