Skip to content

Fix ThreadContextTestAccess out of the org.apache.logging.log4j.core package - #4315

Open
ramanathan1504 wants to merge 1 commit into
mainfrom
fix-main-ci
Open

Fix ThreadContextTestAccess out of the org.apache.logging.log4j.core package#4315
ramanathan1504 wants to merge 1 commit into
mainfrom
fix-main-ci

Conversation

@ramanathan1504

Copy link
Copy Markdown
Contributor

log4j-core-test had one class directly in org.apache.logging.log4j.core, the package log4j-core also exports. JPMS forbids reading one package from two modules, so a
consumer requiring both fails:

  module org.apache.logging.log4j.samples.nashorn reads package                                                                                                             
  org.apache.logging.log4j.core from both org.apache.logging.log4j.core                                                                                                     
  and org.apache.logging.log4j.core.test                                                                                                                                    

That is what fails integration-test (3.0.0-SNAPSHOT) on log4j-nashorn-test. 2.x has no class in that package.

The class only touches public API and reaches resetThreadContextMap by reflection, so the placement is vestigial. One call site, updated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant