ruby-changes:13498
From: matz <ko1@a...>
Date: Fri, 9 Oct 2009 23:52:22 +0900 (JST)
Subject: [ruby-changes:13498] Ruby:r25274 (trunk): * vm_method.c (rb_method_boundp): should exclude NOEX_RESPONDS.
matz 2009-10-09 23:52:02 +0900 (Fri, 09 Oct 2009) New Revision: 25274 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25274 Log: * vm_method.c (rb_method_boundp): should exclude NOEX_RESPONDS. based on the patch from Nikolai Lugovoi. [ruby-core:25949] Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25273) +++ ChangeLog (revision 25274) @@ -1,3 +1,8 @@ +Fri Oct 9 23:10:04 2009 Yukihiro Matsumoto <matz@r...> + + * vm_method.c (rb_method_boundp): should exclude NOEX_RESPONDS. + based on the patch from Nikolai Lugovoi. [ruby-core:25949] + Fri Oct 9 21:14:40 2009 Tanaka Akira <akr@f...> * lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP): disable Index: vm_method.c =================================================================== --- vm_method.c (revision 25273) +++ vm_method.c (revision 25274) @@ -512,7 +512,7 @@ rb_method_entry_t *me = rb_method_entry(klass, id); if (me != 0) { - if (ex && (me->flag & NOEX_PRIVATE)) { + if ((ex & ~NOEX_RESPONDS) && (me->flag & NOEX_PRIVATE)) { return FALSE; } if (!me->def) return 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/