Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Passing a ruby class as a java.lang.Class into Java land #3454
I guess the code above is pretty self explaining, i hava a Ruby class that implements a Java interface, and i want to pass that class back to another Java class. However, when a execute the ruby code i get the following error:
Shouldn't this work?
ps: teste_jruby.jar is a jar file i exported with the java code.
also, should be able to "over-come" the limitation by forcing a Java-class to be generated for the Ruby one:
class TesteJob include Job def teste puts "123456" end end teste_jclass = TesteJob.become_java! Teste.new.executaJob( teste_jclass ) # teste_jclass.newInstance works fine
@kares I got another error
It breaks on the line 'job.teste();'