Skip to content

Commit

Permalink
Merge branch '2.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 16, 2025
2 parents 916cc53 + 17858e9 commit 5644892
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 5644892

Please sign in to comment.