Skip to content

Commit c966a03

Browse files
committed
...
1 parent 1ce6508 commit c966a03

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializer.java

+10
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,16 @@ protected Object deserializeWithExternalTypeId(JsonParser p, DeserializationCont
717717
if (_propertyBasedCreator != null) {
718718
return deserializeUsingPropertyBasedWithExternalTypeId(p, ctxt);
719719
}
720+
if (_delegateDeserializer != null) {
721+
/* 24-Nov-2015, tatu: Use of delegating creator needs to have precedence, and basically
722+
* external type id handling just has to be ignored, as they would relate to target
723+
* type and not delegate type. Whether this works as expected is another story, but
724+
* there's no other way to really mix these conflicting features.
725+
*/
726+
return _valueInstantiator.createUsingDelegate(ctxt,
727+
_delegateDeserializer.deserialize(p, ctxt));
728+
}
729+
720730
return deserializeWithExternalTypeId(p, ctxt, _valueInstantiator.createUsingDefault(ctxt));
721731
}
722732

0 commit comments

Comments
 (0)