Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1058

Log4jMarker#contains(String) does not respect org.slf4j.Marker contract

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: SLF4J Bridge
    • Labels:
      None

      Description

      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%28java.lang.String%29

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nikelblue Daniel Branzea
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: