Skip to content

Commit

Permalink
Merge branch '2.11' into 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 27, 2021
2 parents 9b91c1c + eb3ebd9 commit 666a6ac
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
7 changes: 5 additions & 2 deletions release-notes/CREDITS-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,11 @@ Lucian H (symposion@github)
with `@JsonIdentityInfo`, `PropertyGenerator`
(2.11.4)
Gian Merlino (gianm@github)
* Reported #3022: Property ignorals cause `BeanDeserializer `to forget how to read
from arrays (not copying `_arrayDelegateDeserializer`)
(2.11.5 / 2.12.2)
Marc Carter (drekbour@github)
* Contributed #43 implementation: Add option to resolve type from multiple existing properties,
`@JsonTypeInfo(use=DEDUCTION)`
Expand Down Expand Up @@ -1293,5 +1298,3 @@ SunYiJun (xiaosunzhu@github)
* Reported, suggested fix for #2979: Conflicting in POJOPropertiesCollector when
having namingStrategy
(2.12.1)
--- END ---
6 changes: 6 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Project: jackson-databind
=== Releases ===
------------------------------------------------------------------------

2.12.2 (not yet released)

#3022: Property ignorals cause `BeanDeserializer `to forget how to read
from arrays (not copying `_arrayDelegateDeserializer`)
(reported by Gian M)

2.12.1 (08-Jan-2021)

#2962: Auto-detection of constructor-based creator method skipped if there is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,18 @@ public abstract class BeanDeserializerBase
/**
* Deserializer that is used iff delegate-based creator is
* to be used for deserializing from JSON Object.
*<p>
* NOTE: cannot be {@code final} because we need to get it during
* {@code resolve()} method (and not contextualization).
*/
protected JsonDeserializer<Object> _delegateDeserializer;

/**
* Deserializer that is used iff array-delegate-based creator
* is to be used for deserializing from JSON Object.
*<p>
* NOTE: cannot be {@code final} because we need to get it during
* {@code resolve()} method (and not contextualization).
*/
protected JsonDeserializer<Object> _arrayDelegateDeserializer;

Expand Down Expand Up @@ -211,7 +217,11 @@ protected BeanDeserializerBase(BeanDeserializerBuilder builder,
{
super(beanDesc.getType());
_beanType = beanDesc.getType();

_valueInstantiator = builder.getValueInstantiator();
_delegateDeserializer = null;
_arrayDelegateDeserializer = null;
_propertyBasedCreator = null;

_beanProperties = properties;
_backRefs = backRefs;
Expand Down Expand Up @@ -264,6 +274,7 @@ protected BeanDeserializerBase(BeanDeserializerBase src, boolean ignoreAllUnknow

_valueInstantiator = src._valueInstantiator;
_delegateDeserializer = src._delegateDeserializer;
_arrayDelegateDeserializer = src._arrayDelegateDeserializer;
_propertyBasedCreator = src._propertyBasedCreator;

_beanProperties = src._beanProperties;
Expand Down Expand Up @@ -291,6 +302,7 @@ protected BeanDeserializerBase(BeanDeserializerBase src, NameTransformer unwrapp

_valueInstantiator = src._valueInstantiator;
_delegateDeserializer = src._delegateDeserializer;
_arrayDelegateDeserializer = src._arrayDelegateDeserializer;
_propertyBasedCreator = src._propertyBasedCreator;

_backRefs = src._backRefs;
Expand Down Expand Up @@ -329,6 +341,7 @@ public BeanDeserializerBase(BeanDeserializerBase src, ObjectIdReader oir)

_valueInstantiator = src._valueInstantiator;
_delegateDeserializer = src._delegateDeserializer;
_arrayDelegateDeserializer = src._arrayDelegateDeserializer;
_propertyBasedCreator = src._propertyBasedCreator;

_backRefs = src._backRefs;
Expand Down Expand Up @@ -371,6 +384,7 @@ public BeanDeserializerBase(BeanDeserializerBase src,

_valueInstantiator = src._valueInstantiator;
_delegateDeserializer = src._delegateDeserializer;
_arrayDelegateDeserializer = src._arrayDelegateDeserializer;
_propertyBasedCreator = src._propertyBasedCreator;

_backRefs = src._backRefs;
Expand Down Expand Up @@ -403,6 +417,7 @@ protected BeanDeserializerBase(BeanDeserializerBase src, BeanPropertyMap beanPro

_valueInstantiator = src._valueInstantiator;
_delegateDeserializer = src._delegateDeserializer;
_arrayDelegateDeserializer = src._arrayDelegateDeserializer;
_propertyBasedCreator = src._propertyBasedCreator;

_beanProperties = beanProps;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ private Value2354 build() {
}
}


/*
/**********************************************************
/* Test methods
Expand Down

0 comments on commit 666a6ac

Please sign in to comment.