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

[ExtensionLoader] Prioritize extension classpath over app classpath #433

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

beer-psi
Copy link
Contributor

@beer-psi beer-psi commented Feb 19, 2024

This PR introduces a PathClassLoader subclass that searches for classes in order of system, child, parent.

This is most useful when extensions use a dependency that the app may have transitively pulled in, causing conflicts and runtime errors.

Tested on ~15 other extensions, they still work fine after the change.

Closes #432

@AntsyLich AntsyLich merged commit ab02568 into mihonapp:main Feb 24, 2024
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Classes from the extension should be prioritized over the app
2 participants