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

ClassCastException in MemoryAllocationExports #504

Closed
kebuu opened this issue Oct 4, 2019 · 2 comments · Fixed by #505
Closed

ClassCastException in MemoryAllocationExports #504

kebuu opened this issue Oct 4, 2019 · 2 comments · Fixed by #505

Comments

@kebuu
Copy link
Contributor

kebuu commented Oct 4, 2019

Hello,
I am working with an IBM jdk which seems to have a GarbageCollectorMXBean not being a NotificationEmitter. That's why I get a ClassCastException on line 29 of class MemoryAllocationExports.
Could it be possible to check if the GarbageCollectorMXBean is an instance of NotificationEmitter before casting it ?
Regards

@brian-brazil
Copy link
Contributor

Would you like to send a PR?

@kebuu
Copy link
Contributor Author

kebuu commented Oct 4, 2019 via email

brian-brazil pushed a commit that referenced this issue Oct 7, 2019
FIX #504

Signed-off-by: Christophe TARDELLA <christophe.tardella@gmail.com>
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 a pull request may close this issue.

2 participants