From fca1e7df082c2555a388d9695a8862e58b4c876f Mon Sep 17 00:00:00 2001 From: Migwel Date: Wed, 27 Jan 2021 18:55:51 +0100 Subject: [PATCH] Fix for #3025 (#3026) --- .../jackson/databind/deser/std/UntypedObjectDeserializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java index e20b0663da..e7331018d1 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java @@ -985,7 +985,7 @@ protected Object _mapObjectWithDups(JsonParser p, DeserializationContext ctxt, newValue = deserialize(p, ctxt); oldValue = result.put(nextKey, newValue); if ((oldValue != null) && squashDups) { - _squashDups(result, key, oldValue, newValue); + _squashDups(result, nextKey, oldValue, newValue); } nextKey = p.nextFieldName(); }