Yes, it appears you are right. According to the FAQ, you can't do this. And
the last revision of jruby I used I could not.

FAQ Snippet:

"I want to extend/instantiate an abstract class within Ruby

This is currently not possible. At some future point we may support this,
but it requires generating bytecode to solve. A work-around to this problem
would be to define a concrete implementation of the abstract class and
extend that."

On 2/13/08, Ola Bini <[EMAIL PROTECTED]> wrote:
>
> Justin DeWind wrote:
> > This is probably not a permanent solution, the byte code generation
> > should probably happen within the 'Java' layer and it probably
> > shouldn't be dependent on cglib. However, for those of you that are
> > interested I created simple implementation that allows users to
> > implement a abstract class from within JRuby. I pasted a link to the
> > code and a link to some examples.
> >
> > Implementation: http://pastie.caboo.se/151677
> > Examples: http://pastie.caboo.se/151695
> >
> > Note: cglib must be in the classpath
> Uhm. I don't really understand the purpose of this. You can already
> subclass abstract classes from Ruby using JRuby.
>
> Cheers
>
> --
> Ola Bini (http://ola-bini.blogspot.com)
> JRuby Core Developer
> Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
> Practical JRuby on Rails (http://apress.com/book/view/9781590598818)
>
> "Yields falsehood when quined" yields falsehood when quined.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>


-- 
Justin DeWind | Software Developer
Atomic Object | http://atomicobject.com
[Ph] +1 616 776 6020 [Fx] +1 616 776 6015

Reply via email to