https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2009-09-05T08:54:04Z
Ruby Issue Tracking System
Ruby master - Bug #2051: alias_method :foo, :__send__
https://redmine.ruby-lang.org/issues/2051?journal_id=5617
2009-09-05T08:54:04Z
mattetti (Matt Aimonetti)
mattaimonetti@gmail.com
<ul></ul><p>=begin<br>
Looks like a regression, I tried on a different machine:</p>
<p>$ruby19 -e "class Object; alias_method :foo, :<strong>send</strong>; end; p 'test'.foo(:upcase) "<br>
"TEST"<br>
$ ruby19 -v<br>
ruby 1.9.2dev (2009-07-02 trunk 23934)[i386-darwin10.0.0]<br>
=end</p>
Ruby master - Bug #2051: alias_method :foo, :__send__
https://redmine.ruby-lang.org/issues/2051?journal_id=5619
2009-09-05T08:58:27Z
wycats (Yehuda Katz)
wycats@gmail.com
<ul></ul><p>=begin<br>
I can reproduce on 1.9 trunk:</p>
<p>$ ruby -e "class Object; alias_method :try, :<strong>send</strong>; end "<br>
-e:1: [BUG] rb_add_method: unsupported method type (8)</p>
<p>ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-darwin10.0.0]</p>
<h2>-- control frame ----------<br>
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC :alias_method<br>
c:0004 p:0015 s:0008 b:0008 l:000007 d:000007 CLASS -e:1<br>
c:0003 p:0009 s:0006 b:0006 l:002348 d:000668 EVAL -e:1<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:0000 s:0002 b:0002 l:002348 d:002348 TOP</h2>
<p>-e:1:in <code><main>' -e:1:in </code><a href="class:Object" class="external">class:Object</a>'<br>
-e:1:in `alias_method'</p>
<p>-- C level backtrace information -------------------------------------------<br>
0 ruby 0x000000010015d153 rb_vm_bugreport + 195<br>
1 ruby 0x0000000100034114 report_bug + 372<br>
2 ruby 0x00000001000342d8 rb_bug + 200<br>
3 ruby 0x0000000100155eaf rb_alias + 319<br>
4 ruby 0x00000001001560eb rb_mod_alias_method + 59<br>
5 ruby 0x0000000100145552 vm_call_cfunc + 354<br>
6 ruby 0x000000010015a244 vm_call_method + 1268<br>
7 ruby 0x000000010014aaa4 vm_exec_core + 4452<br>
8 ruby 0x00000001001519ce vm_exec + 1102<br>
9 ruby 0x0000000100151c30 rb_iseq_eval_main + 464<br>
10 ruby 0x0000000100037be2 ruby_exec_node + 178<br>
11 ruby 0x0000000100039a64 ruby_run_node + 84<br>
12 ruby 0x00000001000014cf main + 79<br>
13 ruby 0x00000001000014<br>
=end</p>
Ruby master - Bug #2051: alias_method :foo, :__send__
https://redmine.ruby-lang.org/issues/2051?journal_id=5620
2009-09-05T10:42:55Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>=begin<br>
Already fixed.<br>
=end</p>