Thanks, well that makes an inline implementation, like interfaces in jruby, pretty easy since it already exists.
On 2/13/08, Thomas E Enebo <[EMAIL PROTECTED]> wrote: > > I updated the site to point at jruby wiki FAQ page instead of the > internal one on codehaus (I also removed that FAQ since it is out of > date). codehaus does not update pages instantly...so give it some > time before sending a message back saying the FAQ link is not working. > > Thanks for pointing this out... > > -Tom > > On Feb 13, 2008 2:44 PM, Justin DeWind <[EMAIL PROTECTED]> wrote: > > 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 > > > > -- > Blog: http://www.bloglines.com/blog/ThomasEEnebo > Email: [EMAIL PROTECTED] , [EMAIL PROTECTED] > > --------------------------------------------------------------------- > 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
