From 877e3d8b9f1dcccf94d260667f8db3e1bb2efd98 Mon Sep 17 00:00:00 2001 From: Tatu Date: Thu, 15 May 2014 13:33:29 -0700 Subject: [PATCH] Fix for #459 in master --- .../deser/BeanDeserializerBuilder.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.java b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.java index 741226be88..24c0ca0fcc 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.java @@ -110,27 +110,29 @@ protected BeanDeserializerBuilder(BeanDeserializerBuilder src) _beanDesc = src._beanDesc; _defaultViewInclusion = src._defaultViewInclusion; - _anySetter = src._anySetter; - _ignoreAllUnknown = src._ignoreAllUnknown; - // let's make copy of properties _properties.putAll(src._properties); + _injectables = _copy(src._injectables); _backRefProperties = _copy(src._backRefProperties); // Hmmh. Should we create defensive copies here? For now, not yet _ignorableProps = src._ignorableProps; _valueInstantiator = src._valueInstantiator; _objectIdReader = src._objectIdReader; + _anySetter = src._anySetter; + _ignoreAllUnknown = src._ignoreAllUnknown; + _buildMethod = src._buildMethod; _builderConfig = src._builderConfig; } - private static HashMap _copy(HashMap src) - { - if (src == null) { - return null; - } - return new HashMap(src); + private static HashMap _copy(HashMap src) { + return (src == null) ? null + : new HashMap(src); + } + + private static List _copy(List src) { + return (src == null) ? null : new ArrayList(src); } /* @@ -142,8 +144,7 @@ private static HashMap _copy(HashMap