From 29756c5e94c6f273c6b1a1103d9c0b12570566ea Mon Sep 17 00:00:00 2001 From: shugo Date: Sun, 9 Dec 2012 08:48:34 +0000 Subject: * vm_insnhelper.c (vm_call_opt_send): Kernel#send should not use refinements. * proc.c (mnew): Kernel#method, Kernel#public_method, Module#instance_method, and Module#public_instance_method should not use refinements. * vm_method.c (rb_method_boundp): Kernel#respond_to? should not use refinements. * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 5743654953..f2c8c40e8c 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1597,7 +1597,9 @@ vm_call_opt_send(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *c if (i > 0) { MEMMOVE(&TOPN(i), &TOPN(i-1), VALUE, i); } - ci->me = rb_method_entry(CLASS_OF(ci->recv), ci->mid, &ci->defined_class); + ci->me = + rb_method_entry_without_refinements(CLASS_OF(ci->recv), + ci->mid, &ci->defined_class); ci->argc -= 1; DEC_SP(1); -- cgit v1.2.3