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

Use different classloader for AP Plugin/Module ServiceLoader #263

Merged
merged 1 commit into from Jan 20, 2023

Conversation

SentryMan
Copy link
Collaborator

@SentryMan SentryMan commented Jan 20, 2023

ServiceLoader uses Thread.currentThread().getContextClassLoader() when a ClassLoader is not specified. This loader cannot see the META-INF\services files of a project and its dependencies inside of the AP. This PR fixes that.

@SentryMan SentryMan changed the title Use different classloader for ServiceLoader Use different classloader for AP Plugin/Module ServiceLoader Jan 20, 2023
@rbygrave rbygrave merged commit 0602a5c into avaje:master Jan 20, 2023
@rbygrave rbygrave added this to the 8.12 milestone Jan 20, 2023
@rbygrave rbygrave added the bug Something isn't working label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants