I narrowed down my current Rails issue to something wrong with how we handle self and send in the context of DelegateClass. I have not dug deeper than this yet.

The following succeeded in Ruby, fails in JRuby:

require 'delegate'

class Foo
end

class Bar < DelegateClass(Foo)
  def bar
    puts "bar"
  end

  def doit
    self.send(:bar)
  end
end

f = Foo.new
b = Bar.new (f)

b.doit

--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com

Reply via email to