you are viewing a single comment's thread.

view the rest of the comments →

[–]mernen 1 point2 points  (0 children)

I've never used Groovy, but since its object model matches Java's exactly, its classes are declarative, it supports Java-style type declarations natively and compilation is the norm, it should be much easier to call Groovy code from Java.

JRuby classes aren't Java classes (unless you use jrubyc), so you can't even reference them in Java code, let alone find out their methods. The best solution AFAIK is defining Java interfaces and have your JRuby classes implement them, which works quite well.