Hi.

I've found something that seems to be a bug.
I have these modules:

    module A
      def initialize(stream)
        super()
      end
    end
    module B
      def initialize
        super
      end
    end

class C
  include A, B  
  def initialize(stream)
    super
  end
end



Now, according to the pickaxe, when C calls super it will first call
A.initialize(stream), and then A will call empty super on next module,
something like this: B.initialize() and B will call super() on Object.
This works fine in C Ruby, but not JRuby. Of course, this is not a very
good way to do things, but the behaviour should be correct anyways.

Regards
 Ola Bini


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to