ppkarwasz commented on PR #2768:
URL: https://github.com/apache/logging-log4j2/pull/2768#issuecomment-2250148217

   Did you try replacing `LoaderUtil.newInstanceOf` with:
   
   ```java
   return (EventHandler<RingBufferLogEvent>)
           
Class.forName("org.apache.logging.log4j.core.async.RingBufferLogEventHandler")
                   .getConstructor()
                   .newInstance();
   ```
   
   This version should also be more GraalVM-friendly and shouldn't cause a 
`CCE`.


-- 
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