https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-12-11T00:22:45ZRuby Issue Tracking SystemRuby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=435782013-12-11T00:22:45Zmatsuda (Akira Matsuda)ronnie@dio.jp
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/43578/diff?detail_id=31439">diff</a>)</li></ul><p>=begin<br>
=end</p> Ruby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=435812013-12-11T00:38:19Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/43581/diff?detail_id=31441">diff</a>)</li></ul> Ruby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=435942013-12-11T12:01:28Zmatthewd (Matthew Draper)matthew@trebex.net
<ul></ul><p>git bisect says this changed in r36595, if it helps.</p> Ruby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=436422013-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></ul><p>This issue was solved with changeset r44175.<br>
Yusuke, 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 (<code>method_owner</code>): return the class where alias is defined, not<br>
the class original method is defined.</li>
<li>vm_method.c (<code>rb_method_entry_make</code>, <code>rb_alias</code>): 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 (<code>rb_method_entry_get_without_cache</code>): cache included<br>
module but not iclass.</li>
</ul> Ruby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=436442013-12-13T23:54:21Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul> Ruby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=436572013-12-14T10:14:42Zmatsuda (Akira Matsuda)ronnie@dio.jp
<ul></ul><p>Confirmed the fix. Thanks!</p> Ruby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=437352013-12-18T12:50:17Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Backport</strong> changed from <i>1.9.3: UNKNOWN, 2.0.0: UNKNOWN</i> to <i>1.9.3: DONTNEED, 2.0.0: REQUIRED</i></li></ul> Ruby master - Bug #9236: include + include + alias_method + super behaviour inconsistency between 1.9 and 2.0https://redmine.ruby-lang.org/issues/9236?journal_id=438542013-12-23T22:58:57Znagachika (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 <code>ruby_2_0_0</code> at r44345, and additionally r44198 was backported at 44366.</p>