We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db2f54e commit d23ee24Copy full SHA for d23ee24
src/main/java/tools/jackson/databind/cfg/MapperBuilder.java
@@ -1035,6 +1035,8 @@ public B withAllCoercionConfigs(Consumer<CoercionConfigs> handler) {
1035
*/
1036
public B removeAllModules() {
1037
_modules = null;
1038
+ // [databind#5481]: invalidate cached state when modules are modified
1039
+ _savedState = null;
1040
return _this();
1041
}
1042
@@ -1066,6 +1068,8 @@ public B addModule(JacksonModule module)
1066
1068
_modules.putIfAbsent(dep.getRegistrationId(), dep);
1067
1069
1070
_modules.put(moduleId, module);
1071
1072
1073
1074
1075
0 commit comments