-
Notifications
You must be signed in to change notification settings - Fork 54
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
log the plugin loading NoClassDefFoundError #287
Conversation
Thanks, @yaozhihang. Couldn't we alternatively just log exceptions for those plugins that cannot be loaded (via something like |
for (Plugin plugin : pluginLoader) { | ||
plugins.add(plugin); | ||
} | ||
} catch (NoClassDefFoundError e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest catching Throwable
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done with 952a7fd
Hm, i think not possible. The exception is thrown in the method |
I also tested the iterator interface of the ServiceLoader and unfortunately the error is already thrown in the I nevertheless propose a small change. I think it would be better to use the exception handling of the |
thanks @clausnagel. The Proposal is in this commit d7ff2c3 |
Fix the issue
#285