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

   The `GraalVmProcessor` currently only generates metadata for Log4j plugins, 
overlooking other reflection usages in Log4j Core. This change adds 
reachability metadata for additional reflection cases to improve compatibility 
with GraalVM native images.
   
   ### Fixed Cases
   
   This PR addresses the following reflective instantiations:
   
   * **Context selectors and reliability strategies:** Ensures proper 
instantiation under GraalVM.
   * **`Configuration` instantiation in `DefaultConfigurationBuilder`:** Fixes 
support for the `log4j2.properties` configuration format when running on 
GraalVM.
   * **`BlockingQueue` instantiation in JSON Template Layout:** Enables GraalVM 
compatibility. Note: `MpmcArrayQueue` is not supported on GraalVM and must be 
fixed in the JCTools project.
   
   ### Known Limitations (Explicitly Ignored)
   
   The following cases are *not* addressed in this PR:
   
   * **JMX classes in `log4j-1.2-api`:** While GraalVM supports JMX, usage of 
Log4j 1.x’s JMX interface is likely minimal.
   * **`MulticastDnsAdvertiser`:** This feature is probably unused and could 
pose a security risk by advertising log file locations via mDNS.
   
   


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