-
Notifications
You must be signed in to change notification settings - Fork 6
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
JMX::MBeans.parent_for unreliable in Jruby 9000 #14
Comments
Actually, a simpler demonstration that doesn't require launching the JVM with JMX available: test.rb: require 'jmx'
Java::Sun
puts JMX::MBeans.parent_for "sun.something.SomethingElse" JRuby 1.7:
JRuby 9000:
|
I'm not sure if it's the same issue, but #16 may fix this as well. |
@tobias @savelandr sure seems like the same issue you had. |
@savelandr thanks for checking! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test.rb:
Running in JRuby 1.7:
Running in JRuby 9000:
I also have similar problems when the ObjectName's class name is "com.x.y.z". And I can easily force the issue by just calling
Java::Com
orJava::Sun
before accessing an ObjectName whose class name path is sun.x.y or com.x.y.I.e.
results in
but this doesn't force the problem in JRuby 1.7, it still prints the attributes for that object name.
The text was updated successfully, but these errors were encountered: