Skip to content

Commit

Permalink
Manually merge #3038 (contributed by @jellevoost)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 1, 2021
1 parent 486ef36 commit 1eb2c07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions release-notes/CREDITS-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -1302,3 +1302,7 @@ Miguel G (Migwel@github)
* Reported, contributed fix for #3025: UntypedObjectDeserializer` mixes multiple unwrapped
collections (related to #2733)
(2.12.2)
Jelle Voost (jellevoost@github)
* Reported #3038: Two cases of incorrect error reporting about DeserializationFeature
(2.12.2)
2 changes: 2 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Project: jackson-databind
#3025: UntypedObjectDeserializer` mixes multiple unwrapped
collections (related to #2733)
(fix contributed by Migwel@github)
#3038: Two cases of incorrect error reporting about DeserializationFeature
(reported by Jelle V)

2.12.1 (08-Jan-2021)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public Object getParameter(SettableBeanProperty prop)
}
if (value == null && _context.isEnabled(DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES)) {
return _context.reportInputMismatch(prop,
"Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS` enabled",
"Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES` enabled",
prop.getName(), prop.getCreatorIndex());
}
return value;
Expand Down Expand Up @@ -173,7 +173,7 @@ public Object[] getParameters(SettableBeanProperty[] props)
if (_creatorParameters[ix] == null) {
SettableBeanProperty prop = props[ix];
_context.reportInputMismatch(prop,
"Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS` enabled",
"Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES` enabled",
prop.getName(), props[ix].getCreatorIndex());
}
}
Expand Down

0 comments on commit 1eb2c07

Please sign in to comment.