apache / apache/logging-log4j2
Generate `Log4jPlugins` class does not compile in JPMS
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 30
Description
Currently `log4j-plugin-processor` in version `3.0.0-beta3` of Log4j Core adds [BND annotations](https://bnd.bndtools.org/chapters/230-manifest-annotations.html) to the generated code.
While these might be useful for OSGi users, they cause a compilation error if the `biz.aQute.bnd.annotation` module is not present:
- On the compiler classpath,
- A `static` dependency on the module is not declared in the `module-info.java` file.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the log4j-plugin-processor output for the generated Log4jPlugins class and the relevant module-info.java configuration. Reproduce compilation with biz.aQute.bnd.annotation absent from the compiler classpath; done means the generated class compiles in JPMS without an undeclared static module dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100