You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2012/09/08 08:29:07 UTC
[jira] [Closed] (LOG4J2-82) MarkerFilter causes Markers to be
incorrectly created. SLF4J Markers cause ClassCastException
[ https://issues.apache.org/jira/browse/LOG4J2-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers closed LOG4J2-82.
-----------------------------
Resolution: Fixed
Assignee: Ralph Goers
Fixed in revision 1382240. MarkerFilter now operates on a String. MarkerWrapper does not cast the Marker to a MarkerWrapper.
> MarkerFilter causes Markers to be incorrectly created. SLF4J Markers cause ClassCastException
> ---------------------------------------------------------------------------------------------
>
> Key: LOG4J2-82
> URL: https://issues.apache.org/jira/browse/LOG4J2-82
> Project: Log4j 2
> Issue Type: Bug
> Components: API
> Affects Versions: 2.0-alpha2
> Reporter: Ralph Goers
> Assignee: Ralph Goers
> Fix For: 2.0-alpha3
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org