Vampire commented on issue #4034:
URL: 
https://github.com/apache/logging-log4j2/issues/4034#issuecomment-3789932911

   And even worse, you have this for each and every module, no matter whether 
it even uses any of those annotations or not.
   `log4j-api` for example does not have any of those annotations added.
   Yet it needlessly adds those dependencies to downstream compile classpaths 
without any reason.
   
   So even if you do not agree that log4j should not work-around this Java 
compiler bug,
   please at least reconfigure it, so that only those artifacts declare the 
dependencies that actually have annotations of the respective dependency,
   or even only if they use enum constants from those libraries, as the 
annotations themselves are handled properly by the Java compiler, even with 
`-Werror`.


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