Is It Possible to Override a java method in JRuby code?


#1

Is It Possible to Override a java method in JRuby code?
Googling the subject returns a few comments infering that it is not
possible without doing something with byte code :frowning:

Thanks
Paul F.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

Paul F. wrote:

Is It Possible to Override a java method in JRuby code? Googling the
subject returns a few comments infering that it is not possible without
doing something with byte code :frowning:

If you are extending an existing Java type, yes. But not when reopening
an existing type, since Java types aren’t open (we just make it “appear”
to be modified from Ruby).

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email