Project

General

Profile

Backport #9349

Backport r44458

Added by hsbt (Hiroshi SHIBATA) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal

Description

Related to #9309 and #9313 and more.

Associated revisions

Revision 32e4d034
Added by naruse (Yui NARUSE) over 5 years ago

merge revision(s) 44455,44458,44510: [Backport #9349]

    * vm_insnhelper.c (vm_search_super_method): direct superclass of a
      module is found when super called in a Method object generated a
      method defined in a module, call method_missing in that case.
      [ruby-core:59358] [Bug #9315]

    * proc.c (mnew_from_me): keep iclass as-is, to make inheritance
      chain consistent.  [ruby-core:59358] [Bug #9315]

    * proc.c (method_owner): return the original defined_class from
      prepended iclass, instead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 44777
Added by naruse (Yui NARUSE) over 5 years ago

merge revision(s) 44455,44458,44510: [Backport #9349]

* vm_insnhelper.c (vm_search_super_method): direct superclass of a
  module is found when super called in a Method object generated a
  method defined in a module, call method_missing in that case.
  [ruby-core:59358] [Bug #9315]

* proc.c (mnew_from_me): keep iclass as-is, to make inheritance
  chain consistent.  [ruby-core:59358] [Bug #9315]

* proc.c (method_owner): return the original defined_class from
  prepended iclass, instead.

History

#1

Updated by tmm1 (Aman Gupta) over 5 years ago

The test for the regression was included in r44455

#2

Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

related commit are r44455, r44458 and r44510

Updated by naruse (Yui NARUSE) over 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset r44777.


merge revision(s) 44455,44458,44510: [Backport #9349]

* vm_insnhelper.c (vm_search_super_method): direct superclass of a
  module is found when super called in a Method object generated a
  method defined in a module, call method_missing in that case.
  [ruby-core:59358] [Bug #9315]

* proc.c (mnew_from_me): keep iclass as-is, to make inheritance
  chain consistent.  [ruby-core:59358] [Bug #9315]

* proc.c (method_owner): return the original defined_class from
  prepended iclass, instead.

Also available in: Atom PDF