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

Add SLF4J adapter, refactor lib classification #605

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

sfPlayer1
Copy link
Contributor

No description provided.

method.invoke(null, (Object) new String[0]);
urls = BundlerClassPathCapture.FUTURE.get(10, TimeUnit.SECONDS);

Thread.currentThread().setContextClassLoader(prevCl);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these restoration code be put into a finally clause in case the main method invocation or the future execution throws anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, the ClassNotFoundException path may not be restored fully otherwise.

@liach liach requested a review from a team January 20, 2022 19:43
@liach liach requested a review from a team January 21, 2022 22:51
@sfPlayer1 sfPlayer1 merged commit da27e34 into FabricMC:master Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants