Daniel Branzea created LOG4J2-1058:
--------------------------------------

             Summary: Log4jMarker#contains(String) does not respect 
org.slf4j.Marker contract
                 Key: LOG4J2-1058
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1058
             Project: Log4j 2
          Issue Type: Bug
          Components: SLF4J Bridge
    Affects Versions: 2.3
            Reporter: Daniel Branzea
            Priority: Minor


Expected behavior
==============
'org.apache.logging.slf4j.Log4jMarker' implements 'org.slf4j.Marker'.

'org.slf4j.Marker#contains(String name)' contract states that: "If 'name' is 
null the returned value is always false."
http://www.slf4j.org/apidocs/org/slf4j/Marker.html#contains(java.lang.String)

Actual behavior
=============
'org.apache.logging.slf4j.Log4jMarker#contains(final String name)'  throws 
'IllegalArgumentException' if 'name' is null




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to