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

Verify class compatibility before attempting cast #1435

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

breedx-splk
Copy link
Contributor

Rework #1427 due to goofy merge shenanigans.

There was a case in the field on an IBM J9 JVM, where an instance returned from ManagementFactory.getThreadMXBean() could not be cast safely to the com.sun.management.ThreadMXBean, even thought that class can be found on the classpath.

It looks like other implementations have also encountered this, and so this fix is inspired by those other workarounds.

@breedx-splk breedx-splk merged commit 8e07921 into signalfx:main Sep 13, 2023
31 checks passed
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