[macruby-changes] [2856] MacRuby/trunk/dispatcher.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 19 16:36:54 PDT 2009
Revision: 2856
http://trac.macosforge.org/projects/ruby/changeset/2856
Author: eloy.de.enige at gmail.com
Date: 2009-10-19 16:36:53 -0700 (Mon, 19 Oct 2009)
Log Message:
-----------
When looking up a method in the ancestor chain skip removed methods.
Modified Paths:
--------------
MacRuby/trunk/dispatcher.cpp
Modified: MacRuby/trunk/dispatcher.cpp
===================================================================
--- MacRuby/trunk/dispatcher.cpp 2009-10-19 23:36:46 UTC (rev 2855)
+++ MacRuby/trunk/dispatcher.cpp 2009-10-19 23:36:53 UTC (rev 2856)
@@ -277,8 +277,9 @@
Method method = class_getInstanceMethod((Class)k, sel);
VALUE super = RCLASS_SUPER(k);
- if (method == NULL || (super != 0
- && class_getInstanceMethod((Class)super, sel) == method)) {
+ if (method == NULL || REMOVED_IMP(method_getImplementation(method))
+ || (super != 0
+ && class_getInstanceMethod((Class)super, sel) == method)) {
continue;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091019/f98f6f17/attachment-0001.html>
More information about the macruby-changes
mailing list