HannesWell commented on PR #1820:
URL: https://github.com/apache/logging-log4j2/pull/1820#issuecomment-1735573097

   > Differences in the OSGi descriptor:
   > * the import statement on `sun.reflect` disappears,
   > * an import statement on `org.apache.logging.log4j.internal` appears.
   
   You didn't mention the exports in the initial message, but I assume 
`org.apache.logging.log4j.internal` is exported from log4j-api's MANIFEST.MF, 
isn't it? Is that intentional?
   
   In case you want to disable imports of packages that are exported by a 
Bundle you can append `-noimport:=true` to the Export-Header in the 
bnd-instructions. E.g. `Export-Package= foo.bar.impl.*;-noimport:=true, *` to 
prevent self-imports of foo.bar.impl.* packages or `Export-Package= 
*;-noimport:=true` for all packages as described here: 
https://bnd.bndtools.org/heads/export_package.html


-- 
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: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to