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 2015/11/27 23:56:11 UTC
[jira] [Commented] (LOG4J2-802) Marker.isInstanceOf may not
terminate if parent Markers form a cycle
[ https://issues.apache.org/jira/browse/LOG4J2-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030300#comment-15030300 ]
Ralph Goers commented on LOG4J2-802:
------------------------------------
Matt, I don't think this is still a problem. Can you confirm whether it is or not?
> Marker.isInstanceOf may not terminate if parent Markers form a cycle
> --------------------------------------------------------------------
>
> Key: LOG4J2-802
> URL: https://issues.apache.org/jira/browse/LOG4J2-802
> Project: Log4j 2
> Issue Type: Bug
> Components: API
> Affects Versions: 2.0.2
> Reporter: Matt Sicker
> Priority: Minor
> Labels: marker
>
> Say I have a marker A which has parents B and C. Say marker B has the parent A. Now suppose I'm checking if A is an instance of C. Depending on which order we added B and C to A, we may recurse down the B path first which would give us A ad infinitum.
> Now the way the API Markers are written shouldn't allow such a scenario to happen. However, such a scenario may be possible with user-defined Markers. Due to the theoretical nature of this problem, I think this is a rather minor issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org