You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2019/12/31 20:09:00 UTC
[jira] [Updated] (LOG4J2-2754) LoaderUtil.getClassLoaders fails to
update loop state
[ https://issues.apache.org/jira/browse/LOG4J2-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carter Kozak updated LOG4J2-2754:
---------------------------------
Summary: LoaderUtil.getClassLoaders fails to update loop state (was: LoaderUtilgetClassLoaders)
> LoaderUtil.getClassLoaders fails to update loop state
> -----------------------------------------------------
>
> Key: LOG4J2-2754
> URL: https://issues.apache.org/jira/browse/LOG4J2-2754
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.13.0
> Reporter: Carter Kozak
> Assignee: Carter Kozak
> Priority: Major
>
> Same problem as LOG4J2-2104, but for final 'ClassLoader current = LoaderUtil.class.getClassLoader();'
> The while loop acts as a simple conditional (unless a classloader is defined with an incorrect 'equals' method, then it loops infinitely -- I've not seen this behavior in practice though).
> It appears that getThreadContextClassLoader can return a null ClassLoader, which ends up in the getClassLoaders result erroneously.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)