https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-03-02T02:41:35ZRuby Issue Tracking SystemRuby master - Bug #7993: owner of methods defined after using Module#prependhttps://redmine.ruby-lang.org/issues/7993?journal_id=372322013-03-02T02:41:35Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul></ul><p>Agreed. I described this in <a href="/issues/7842">[ruby-core:52261]</a>, part of issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: An alias of a "prepend"ed method skips the original method when calling super (Closed)" href="https://redmine.ruby-lang.org/issues/7842">#7842</a>.</p> Ruby master - Bug #7993: owner of methods defined after using Module#prependhttps://redmine.ruby-lang.org/issues/7993?journal_id=436412013-12-13T22:29:25Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r44175.<br>
Nobuhiro, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>proc.c, vm_method.c: fix super and alias</p>
<ul>
<li>proc.c (method_owner): return the class where alias is defined, not<br>
the class original method is defined.</li>
<li>vm_method.c (rb_method_entry_make, rb_alias): store the originally<br>
defined class in me. [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: owner of methods defined after using Module#prepend (Closed)" href="https://redmine.ruby-lang.org/issues/7993">#7993</a>] [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: An alias of a "prepend"ed method skips the original method when calling super (Closed)" href="https://redmine.ruby-lang.org/issues/7842">#7842</a>] [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0 (Closed)" href="https://redmine.ruby-lang.org/issues/9236">#9236</a>]</li>
<li>vm_method.c (rb_method_entry_get_without_cache): cache included<br>
module but not iclass.</li>
</ul> Ruby master - Bug #7993: owner of methods defined after using Module#prependhttps://redmine.ruby-lang.org/issues/7993?journal_id=437332013-12-18T12:49:02Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Backport</strong> set to <i>1.9.3: DONTNEED, 2.0.0: REQUIRED</i></li></ul> Ruby master - Bug #7993: owner of methods defined after using Module#prependhttps://redmine.ruby-lang.org/issues/7993?journal_id=439392013-12-30T00:37:27Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>1.9.3: DONTNEED, 2.0.0: REQUIRED</i> to <i>1.9.3: DONTNEED, 2.0.0: DONE</i></li></ul><p>r44175 and r44179 were backported to ruby_2_0_0 at r44345, and additionally r44198 was backported at 44366.<br>
See <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0 (Closed)" href="https://redmine.ruby-lang.org/issues/9236">#9236</a> too.</p> Ruby master - Bug #7993: owner of methods defined after using Module#prependhttps://redmine.ruby-lang.org/issues/7993?journal_id=453242014-02-21T06:17:41Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/45324/diff?detail_id=32743">diff</a>)</li></ul> Ruby master - Bug #7993: owner of methods defined after using Module#prependhttps://redmine.ruby-lang.org/issues/7993?journal_id=462892014-04-22T07:41:58Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/7987">Bug #7987</a>: Method#parameters should consider a prepended or refined methd</i> added</li></ul>