Skip to content

Commit

Permalink
Merge branch 'master' into tatu/3.0/3406-FAIL_ON_TRAILING-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder authored Jan 16, 2025
2 parents dec1918 + 5644892 commit 2633426
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,6 @@ public Object deserializeFromObject(JsonParser p, DeserializationContext ctxt) t
return bean;
}
final Object bean = _valueInstantiator.createUsingDefault(ctxt);
// [databind#631]: Assign current value, to be accessible by custom deserializers
p.assignCurrentValue(bean);

// First: do we have native Object Ids (like YAML)?
if (p.canReadObjectId()) {
Expand All @@ -524,6 +522,9 @@ else if (_objectIdReader != null && p.hasTokenId(JsonTokenId.ID_END_OBJECT)) {
// should we check what exactly it is... ?
return bean;
}
// [databind#631]: Assign current value, to be accessible by custom serializers
// [databind#4184]: but only if we have at least one property
p.assignCurrentValue(bean);
if (_needViewProcesing) {
Class<?> view = ctxt.getActiveView();
if (view != null) {
Expand Down

0 comments on commit 2633426

Please sign in to comment.