Skip to content

Commit

Permalink
Fix #3938: do not skip setters on Records
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 18, 2023
1 parent 4e1c9be commit 1538330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Project: jackson-databind
=== Releases ===
------------------------------------------------------------------------

2.15.2 (not yet released)

#3938: Record setter not included from interface (2.15 regression)

2.15.1 (16-May-2023)

#3882: Error in creating nested `ArrayNode`s with `JsonNode.withArray()`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,9 @@ protected Object _deserializeUsingPropertyBased(final JsonParser p, final Deseri
// weren't removed (to help in creating constructor-backed PropertyCreator)
// so they ended up in _beanProperties, unlike POJO (whose ignored
// props are removed)
if ((prop != null) && !_beanType.isRecordType()) {
if ((prop != null) &&
// [databind#3938]: except if it's MethodProperty
(!_beanType.isRecordType() || (prop instanceof MethodProperty))) {
try {
buffer.bufferProperty(prop, _deserializeWithErrorWrapping(p, ctxt, prop));
} catch (UnresolvedForwardReference reference) {
Expand Down

0 comments on commit 1538330

Please sign in to comment.