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

MarkerFilter causes Markers to be incorrectly created. SLF4J Markers cause ClassCastException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha2
    • Fix Version/s: 2.0-beta1
    • Component/s: API
    • Labels:
      None

      Description

      MarkerFilter calls MarkerManager.getMarker(). This will cause the Marker to be created when the configuration is processed and generally won't allow the application to create the Markers.

      MarkerWrapper's instanceOf method tries to cast a Marker to a MarkerWrapper even when the Marker is not a MarkerWrapper, causing a ClassCastException.

        Activity

        Hide
        ralph.goers@dslextreme.com Ralph Goers added a comment -

        Fixed in revision 1382240. MarkerFilter now operates on a String. MarkerWrapper does not cast the Marker to a MarkerWrapper.

        Show
        ralph.goers@dslextreme.com Ralph Goers added a comment - Fixed in revision 1382240. MarkerFilter now operates on a String. MarkerWrapper does not cast the Marker to a MarkerWrapper.

          People

          • Assignee:
            ralph.goers@dslextreme.com Ralph Goers
            Reporter:
            ralph.goers@dslextreme.com Ralph Goers
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development