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

fix: ClassLoader not working with Java 9+ #9

Merged
merged 1 commit into from
May 7, 2022

Conversation

danthe1st
Copy link
Contributor

Java 9 changed the default ClassLoader to AppClassLoader.

This PR creates a new URLClassLoader instead of casting the system class loader to URLClassLoader and applying reflective operations for adding URLs.
That URLClassLoader is then used for loading patches.

Furthermore, it explicitly specifies the type ClassLoader for the second argument of FileSystems.newFileSystem in order to disambiguate that call in newer Java versions.

@oSumAtrIX oSumAtrIX merged commit a108c92 into ReVanced:dev May 7, 2022
@github-actions
Copy link

github-actions bot commented May 7, 2022

🎉 This PR is included in version 1.1.0-dev.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented May 7, 2022

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants