Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.13.0
-
None
-
None
Description
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.
Attachments
Issue Links
- links to