« Return to Thread: Java subclasses in Ruby

Java subclasses in Ruby

by backspaces :: Rate this Message:

Reply to Author | View in Thread

In the jruby - dev forum I found:
Kresten Krab Thorup (Trifork) wrote:
So, I just submitted fix for JRUBY-71 (against current trunk, 2225).  
This allows one to write a subclass of a Java class in ruby, override/
extend methods, call super, etc., and pass such objects back out to  
java.

<snip>

Enjoy!

Kresten
But I've seen other emails which indicate that JRuby/Java interoperability in terms of subclassing is not working.

So two questions:
1 - Is the goal for JRuby to be able to have complete bi-directionality in terms of subclassing of Java classes?  I.e. much the way quoted above?  
2 - If so, does it currently work?

My specific interest is to use a graphics library, Processing.org, which requires me to subclass its PApplet class, and have that subclass be callable from the Processing library, .. i.e. from Java.

Owen

 « Return to Thread: Java subclasses in Ruby