Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the explicit dependency on org.jboss.logmanager and add an exp… #65

Merged
merged 1 commit into from Jun 28, 2023

Conversation

jamezp
Copy link
Member

@jamezp jamezp commented Jun 28, 2023

…licit opens to the module if it exists.

Copy link
Member

@dmlloyd dmlloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good to me.

// Therefore, we check the modules are named, and if they are we add an explicit reads.
final Module module = LoggerProviders.class.getModule();
if (module.isNamed() && jblLogManager.getModule().isNamed()) {
module.addReads(jblLogManager.getModule());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want to addReads even if jblLogManager is in the unnamed module.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had it that way at first, then questioned myself. I'll change it back :)

…licit opens to the module if it exists.

Signed-off-by: James R. Perkins <jperkins@redhat.com>
@jamezp jamezp merged commit ac0842b into jboss-logging:main Jun 28, 2023
7 checks passed
@jamezp jamezp deleted the module-workaround branch June 28, 2023 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants