Hi all!

I have done a PoC for enabling Ruby subclassing of Java classes on the Dalvik 
VM on Android.  The issue is tracked at 
http://jira.codehaus.org/browse/JRUBY-6883 and the PoC is in the JRUBY-6883 
branch.

Knowing that it works, I'd like to discuss how best to implement/organise this. 
 I expect that the JRuby project would like to keep Dalvik specific parts out 
of the JRuby source.  Is this right?

The Ruboto project will probably want to improve on the feature with more 
frequent iterations that the JRuby project (just a guess from historic release 
cycles), so it figures that the Dalvik specific parts probably should be placed 
in the Ruboto project.

Ruboto has a step during build where we customise the JRuby jars, and we could 
add the translation there.  I am not sure how we would do this, but it is 
important that we keep all improvements done by the JRuby project, so we do not 
want a separate implementation of the whole JavaProxyClassFactory.  We only 
want to add the translation step.

One important thing to keep in mind is that JRuby can be loaded using a 
separate class loader, so classes in Ruboto may not be visible to JRuby.

Another thing is that currently we are using the file system to store and load 
the classes, so we need a valid file system path that is best determined by the 
running Android application.  In the PoC we set a system property to both 
indicate that we want byte code translation and where to store the temporary 
class files.

Any thoughts on this is welcome.  This is a very big step for the Ruboto 
project, and we want to do it right.



--
Uwe Kubosch
http://ruboto.org/




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to