Skip to content

Fix class loader checks fallback #224

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shybovycha
Copy link

When the first check for the isClassLoaded(cl, className) fails with an exception, the fallback check (for isClassLoaded(cl, "java.awt.SystemTray")) is ignored and the entire system tray initialization fails.

Splitting the chain of isClassLoaded calls into separate calls, wrapped in separate try..catch blocks allows the intended behaviour to prevail.

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.

1 participant