Add feature to Utils class to support a custom ClassLoader configuration #149
+11
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello @astonbitecode . I have been using j4rs for about 2 years now and it's really been a lifesaver. Thank you for all of the effort you have put into it! I've learned so much about the JavaVM internals in the process.
Submitting a PR with a suggested change to the Utils class. My project's upstream recently switched to Java17 and this caused a problem in loading a class through j4rs (on the rust side). In tracking down the details, Java17 disabled allowing substitution to the SystemClassLoader. Some of the classes that I use through j4rs are loaded later in the program execution (as an eclipse plugin), and use a ClassLoader that Eclipse makes in that process. With this change to Utils, I can allow j4rs to retrieve the classes and continue working.
🥂