Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,14 @@ public ValueDeserializer<?> createContextual(DeserializationContext ctxt,
if (oir != null && oir != _objectIdReader) {
contextual = contextual.withObjectIdReader(oir);
}

// [databind#1622]:
if (_propertyBasedCreator == null && _valueInstantiator.canCreateFromObjectWith()) {
SettableBeanProperty[] creatorProps = _valueInstantiator.getFromObjectArguments(ctxt.getConfig());
_propertyBasedCreator = PropertyBasedCreator.construct(
ctxt, _valueInstantiator, creatorProps, _beanProperties);
}

// And possibly add more properties to ignore
if (accessor != null) {
contextual = _handleByNameInclusion(ctxt, intr, contextual, accessor);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tools.jackson.databind.tofix;
package tools.jackson.databind.deser;

import org.junit.jupiter.api.Test;

Expand All @@ -8,7 +8,6 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import tools.jackson.databind.ObjectMapper;
import tools.jackson.databind.testutil.DatabindTestUtil;
import tools.jackson.databind.testutil.failure.JacksonTestFailureExpected;

import static org.junit.jupiter.api.Assertions.assertNotNull;

Expand Down Expand Up @@ -53,7 +52,6 @@ public Common3355 getCommon() {

private final ObjectMapper MAPPER = newJsonMapper();

@JacksonTestFailureExpected
@Test
public void testDeserFailing() throws Exception
{
Expand Down
Loading