-
-
Notifications
You must be signed in to change notification settings - Fork 924
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
org.jruby.javasupport.JavaClass.getMethods generates NoMethodError #3239
Comments
@CeesZ seems like a regression, could we have your full back/stack trace please? |
Thanks for looking at this. The call is made from a Ruby program. Following are two back traces; the first one if I run the program from a jar based on jruby-complete, and the second one if I run it directly using the jruby compiler. They both generate the same error and essentially generate the same back trace. (stack, running from a jar based on jruby-complete-1.7.21) (stack, running from the filesystem using jruby-1.7.21.exe) |
Sorry pushed the wrong button. Did not intend to close the issu |
where did you get qt_connect 1.6.1 ... could we see its sources as the 1.5 lines do not match ? |
I am the author of qt_connect . I am waiting for some bugs in qtjambi 4.8.6 to be cleared and would like to get it working with jruby-9.0.0.0 before releasing the new version to GitHub. So far I did not make many changes from 1.5. What is the easiest way to get you the interim sources? It may not be trivial to isolate the bit of code from the rest, but I will give it some thought |
The following short program demonstrates the problem without having to go in the complicating factors of the Qt interface: require 'java' jrb1719>jruby test3.rb jrb1721>jruby test3.rb |
oh my bad, did not notice that method is actually gone (thought this is a Java Class conversion regression). it was really intended internal ... would you mind refactoring to no longer use it ? you can either simply use |
OK, thanks. That should be a simple solution |
I tried to upgrade an existing program to work with jruby-complete-1.7.21.jar.
The program halts with an error:
NomethodError: undefined method 'getMethods' for #Class:03259fa
Looking up the code, it concerns the following call:
org.jruby.javasupport.JavaClass.getMethods(qtclass)
p [qtclass, qtclass.class] #=> [Java::ComTrolltechQt::QtInfo, Class]
Further checking shows this code works in 1.7.19 but also fails in 1.7.20.1
Is this method now obsolete or can this be due to a bug?
The text was updated successfully, but these errors were encountered: