https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112019-03-01T00:57:30ZRuby Issue Tracking SystemRuby master - Bug #15629: super_method fails on binded/unbinded/cloned methodshttps://bugs.ruby-lang.org/issues/15629?journal_id=769142019-03-01T00:57:30Zwanabe (_ wanabe)s.wanabe@gmail.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/13973">Bug #13973</a>: super_method fails on some UnboundMethods</i> added</li></ul> Ruby master - Bug #15629: super_method fails on binded/unbinded/cloned methodshttps://bugs.ruby-lang.org/issues/15629?journal_id=818662019-10-02T22:24:50Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>File</strong> <a href="/attachments/8090">super_method-bind-unbind-clone-15629.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/8090/super_method-bind-unbind-clone-15629.patch">super_method-bind-unbind-clone-15629.patch</a> added</li></ul><p>This bug is due to the fact that bind/unbind/clone do not copy the <code>iclass</code> entry, and without an <code>iclass</code> entry, <code>super_method</code> returns <code>nil</code>. Attached is a patch that fixes this issue.</p> Ruby master - Bug #15629: super_method fails on binded/unbinded/cloned methodshttps://bugs.ruby-lang.org/issues/15629?journal_id=829492019-12-03T23:35:57Zjeremyevans (Jeremy Evans)code@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="Make {Method,UnboundMethod}#super_method handle clone/bind/unbind This wasn't working previously..." href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/a91637c516779d9ecee5f323e211f0ed71eb06ad">git|a91637c516779d9ecee5f323e211f0ed71eb06ad</a>.</p>
<hr>
<p>Make {Method,UnboundMethod}#super_method handle clone/bind/unbind</p>
<p>This wasn't working previously because the iclass entry wasn't<br>
being copied, and without an iclass entry, super_method returns<br>
nil.</p>
<p>Fixes [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: super_method fails on binded/unbinded/cloned methods (Closed)" href="https://bugs.ruby-lang.org/issues/15629">#15629</a>]</p>