From 091ffaddcf32efb23320c999467d3b5388b5febf Mon Sep 17 00:00:00 2001 From: Vladimir Danilov Date: Mon, 20 Feb 2023 10:19:55 +0300 Subject: [PATCH] Flush readonly map together with shared on serialization cache flush --- .../java/com/fasterxml/jackson/databind/ser/SerializerCache.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java b/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java index f763372f68..73f66e5784 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java +++ b/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java @@ -217,5 +217,6 @@ public void addAndResolveNonTypedSerializer(Class rawType, JavaType fullType, */ public synchronized void flush() { _sharedMap.clear(); + _readOnlyMap.set(null); } }