[ruby-cvs:51320] nobu:r44175 (trunk): proc.c, vm_method.c: fix super and alias

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Dec 13 22:29:24 JST 2013


nobu	2013-12-13 22:29:23 +0900 (Fri, 13 Dec 2013)

  New Revision: 44175

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44175

  Log:
    proc.c, vm_method.c: fix super and alias
    
    * proc.c (method_owner): return the class where alias is defined, not
      the class original method is defined.
    * vm_method.c (rb_method_entry_make, rb_alias): store the originally
      defined class in me.  [Bug #7993] [Bug #7842] [Bug #9236]
    * vm_method.c (rb_method_entry_get_without_cache): cache included
      module but not iclass.

  Modified files:
    trunk/ChangeLog
    trunk/proc.c
    trunk/test/ruby/test_method.rb
    trunk/test/ruby/test_module.rb
    trunk/vm_method.c


More information about the ruby-cvs mailing list