ruby-changes:20479
From: matz <ko1@a...>
Date: Tue, 12 Jul 2011 17:15:58 +0900 (JST)
Subject: [ruby-changes:20479] matz:r32527 (trunk): * vm_method.c (rb_add_method): should not call method_added hook
matz 2011-07-12 17:15:47 +0900 (Tue, 12 Jul 2011) New Revision: 32527 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32527 Log: * vm_method.c (rb_add_method): should not call method_added hook for undef operation. [Bug #5015] Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32526) +++ ChangeLog (revision 32527) @@ -1,3 +1,8 @@ +Tue Jul 12 17:12:45 2011 Yukihiro Matsumoto <matz@r...> + + * vm_method.c (rb_add_method): should not call method_added hook + for undef operation. [Bug #5015] + Tue Jul 12 16:58:44 2011 Shota Fukumori <sorah@t...> * lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug. Index: vm_method.c =================================================================== --- vm_method.c (revision 32526) +++ vm_method.c (revision 32527) @@ -304,7 +304,9 @@ default: rb_bug("rb_add_method: unsupported method type (%d)\n", type); } - method_added(klass, mid); + if (type != VM_METHOD_TYPE_UNDEF) { + method_added(klass, mid); + } return me; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/