Skip to content

Commit 3140bb7

Browse files
committed
Merge branch '2.15' of github.com:FasterXML/jackson-databind into 2.15
2 parents 4e1c9be + 9f80462 commit 3140bb7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

release-notes/VERSION-2.x

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Project: jackson-databind
44
=== Releases ===
55
------------------------------------------------------------------------
66

7+
2.15.2 (not yet released)
8+
9+
#3938: Record setter not included from interface (2.15 regression)
10+
711
2.15.1 (16-May-2023)
812

913
#3882: Error in creating nested `ArrayNode`s with `JsonNode.withArray()`

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,9 @@ protected Object _deserializeUsingPropertyBased(final JsonParser p, final Deseri
470470
// weren't removed (to help in creating constructor-backed PropertyCreator)
471471
// so they ended up in _beanProperties, unlike POJO (whose ignored
472472
// props are removed)
473-
if ((prop != null) && !_beanType.isRecordType()) {
473+
if ((prop != null) &&
474+
// [databind#3938]: except if it's MethodProperty
475+
(!_beanType.isRecordType() || (prop instanceof MethodProperty))) {
474476
try {
475477
buffer.bufferProperty(prop, _deserializeWithErrorWrapping(p, ctxt, prop));
476478
} catch (UnresolvedForwardReference reference) {

0 commit comments

Comments
 (0)