File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
src/main/java/com/fasterxml/jackson/databind/deser/impl Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1302,3 +1302,7 @@ Miguel G (Migwel@github)
1302
1302
* Reported, contributed fix for #3025: UntypedObjectDeserializer` mixes multiple unwrapped
1303
1303
collections (related to #2733)
1304
1304
(2.12.2)
1305
+
1306
+ Jelle Voost (jellevoost@github)
1307
+ * Reported #3038: Two cases of incorrect error reporting about DeserializationFeature
1308
+ (2.12.2)
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Project: jackson-databind
12
12
#3025 : UntypedObjectDeserializer` mixes multiple unwrapped
13
13
collections (related to #2733 )
14
14
(fix contributed by Migwel@github)
15
+ #3038 : Two cases of incorrect error reporting about DeserializationFeature
16
+ (reported by Jelle V)
15
17
16
18
2.12.1 (08 -Jan-2021 )
17
19
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public Object getParameter(SettableBeanProperty prop)
133
133
}
134
134
if (value == null && _context .isEnabled (DeserializationFeature .FAIL_ON_NULL_CREATOR_PROPERTIES )) {
135
135
return _context .reportInputMismatch (prop ,
136
- "Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS ` enabled" ,
136
+ "Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES ` enabled" ,
137
137
prop .getName (), prop .getCreatorIndex ());
138
138
}
139
139
return value ;
@@ -173,7 +173,7 @@ public Object[] getParameters(SettableBeanProperty[] props)
173
173
if (_creatorParameters [ix ] == null ) {
174
174
SettableBeanProperty prop = props [ix ];
175
175
_context .reportInputMismatch (prop ,
176
- "Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS ` enabled" ,
176
+ "Null value for creator property '%s' (index %d); `DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES ` enabled" ,
177
177
prop .getName (), props [ix ].getCreatorIndex ());
178
178
}
179
179
}
You can’t perform that action at this time.
0 commit comments