Skip to content

Commit f54f0f1

Browse files
committed
Add temporary exception for unsupported (as of yet) combo of delegating creator, external type id
1 parent 4a8e9b4 commit f54f0f1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

+13
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,10 @@ protected Object deserializeWithExternalTypeId(JsonParser p, DeserializationCont
716716
if (_propertyBasedCreator != null) {
717717
return deserializeUsingPropertyBasedWithExternalTypeId(p, ctxt);
718718
}
719+
if (_delegateDeserializer != null) {
720+
return deserializeUsingDelegateWithExternalTypeId(p, ctxt);
721+
}
722+
719723
return deserializeWithExternalTypeId(p, ctxt, _valueInstantiator.createUsingDefault(ctxt));
720724
}
721725

@@ -856,4 +860,13 @@ protected Object deserializeUsingPropertyBasedWithExternalTypeId(JsonParser p, D
856860
return null; // never gets here
857861
}
858862
}
863+
864+
/**
865+
* @since 2.7
866+
*/
867+
protected Object deserializeUsingDelegateWithExternalTypeId(JsonParser p, DeserializationContext ctxt)
868+
throws IOException
869+
{
870+
throw ctxt.mappingException("Combination of External Type Id, Delegating Creator not yet supported");
871+
}
859872
}

0 commit comments

Comments
 (0)