You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The org.apache.logging.log4j.core.impl.JdkMapAdapterStringMap constructor is called from org.apache.logging.log4j.core.impl.ThreadContextDataInjector with an UnmodiableMap (copy) and the constructor is trying to modify and catch an exception to detect if this is an immutable Map.
This code is triggered a lot of time and could be more efficient.
Adding a package protected constructor which take the immutable boolean flag as an argument and using it from ThreadContextDataInjector would avoid this slow try catch.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
org.apache.logging.log4j.core.impl.JdkMapAdapterStringMap
constructor is called fromorg.apache.logging.log4j.core.impl.ThreadContextDataInjector
with an UnmodiableMap (copy
) and the constructor is trying to modify and catch an exception to detect if this is an immutable Map.This code is triggered a lot of time and could be more efficient.
Adding a package protected constructor which take the immutable boolean flag as an argument and using it from
ThreadContextDataInjector
would avoid this slow try catch.Beta Was this translation helpful? Give feedback.
All reactions