Skip to content

Commit f80ad72

Browse files
committed
...
1 parent f960f7c commit f80ad72

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/main/java/tools/jackson/databind/deser/bean/BeanDeserializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,11 @@ protected Object _deserializeUsingPropertyBased(final JsonParser p, final Deseri
596596
p.skipChildren();
597597
continue;
598598
}
599-
Object value = _deserializeWithErrorWrapping(p, ctxt, creatorProp);
600599
// Last creator property to set?
601600
// [databind#4690] cannot quit early as optimization any more
602601
// if (buffer.assignParameter(creatorProp, value)) { ... build ... }
603-
buffer.assignParameter(creatorProp, value);
602+
buffer.assignParameter(creatorProp,
603+
_deserializeWithErrorWrapping(p, ctxt, creatorProp));
604604
continue;
605605
}
606606
// regular property? needs buffering

src/test/java/tools/jackson/databind/records/tofix/JsonIncludeNonDefaultOnRecord5312Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@
77
import com.fasterxml.jackson.annotation.JsonInclude;
88
import com.fasterxml.jackson.annotation.JsonValue;
99
import tools.jackson.databind.ObjectMapper;
10-
import tools.jackson.databind.cfg.MutableConfigOverride;
1110
import tools.jackson.databind.json.JsonMapper;
1211

1312
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_DEFAULT;
1413
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
1514

16-
import java.util.Map;
17-
1815
// [databind#5312] Include.NON_DEFAULT regression for objects with @JsonValue
1916
public class JsonIncludeNonDefaultOnRecord5312Test
2017
{

0 commit comments

Comments
 (0)