ppkarwasz opened a new pull request, #3778:
URL: https://github.com/apache/logging-log4j2/pull/3778

   This PR updates the Disruptor version detection logic to use the classloader 
that loaded `DisruptorUtil`, instead of relying on the thread-context 
classloader. The previous approach used `LoaderUtil.isClassAvailable()`, which 
can fail in environments where Disruptor classes are not visible to the 
thread-context classloader.
   
   ### Context
   
   Long-term, we plan to remove or significantly limit the use of the 
thread-context classloader (see #2850). However, addressing that 
comprehensively requires auditing all usages of the `Loader` and `LoaderUtil` 
classes, which introduces risk if any call sites are overlooked.
   
   To reduce disruption, this PR introduces a minimal, targeted fix for this 
specific issue in version `2.25.1`. The broader change tracked in #2850 will be 
addressed in version `2.26.0`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to