In looking at the history MapMessage only supported Strings until you modified it last June. It appears to me you did it incorrectly. You made MapMessage generic but left the put and putAll methods as only supporting String values. I am not sure why you would have done that instead of having them use the same generic. It also seems to be a problem that you added all these with methods that allow arbitrary crap to be added to the Map despite what the generic declaration says.
Ralph > On Jan 11, 2018, at 4:28 PM, Gary Gregory <[email protected]> wrote: > > I can use one of the with() methods so no big deal. > > Gary > > On Thu, Jan 11, 2018 at 4:23 PM, Ralph Goers <[email protected]> > wrote: > >> I will have to look but as I recall I did that for a reason. >> >> Sent from my iPhone >> >>> On Jan 11, 2018, at 3:37 PM, Gary Gregory <[email protected]> >> wrote: >>> >>> It seems to me that: >>> >>> org.apache.logging.log4j.message.MapMessage.put(String, String) >>> >>> should really be: >>> >>> org.apache.logging.log4j.message.MapMessage.put(String, Object) >>> >>> Thoughts? >>> >>> Gary >> >>
