From: Jesse Luehrs Date: Mon, 27 Sep 2010 07:46:54 +0000 (-0500) Subject: ugh, need the hack for this too X-Git-Tag: 1.09~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc2c41b4129a05d2cd4aa6729de6529d49dd89f2;hp=23ab51e474736f6ea918c160fc89f785122ec388;p=gitmo%2FClass-MOP.git ugh, need the hack for this too --- diff --git a/lib/Class/MOP/Mixin/HasMethods.pm b/lib/Class/MOP/Mixin/HasMethods.pm index f3d5a4d..7c62c71 100644 --- a/lib/Class/MOP/Mixin/HasMethods.pm +++ b/lib/Class/MOP/Mixin/HasMethods.pm @@ -225,7 +225,9 @@ sub _restore_metamethods_from { # instances of the new method_metaclass because that's equally broken, # and at least this way any issues will at least be detectable and # potentially fixable. -doy - if (!$method->isa($self->wrapped_method_metaclass)) { + if (!$method->isa($self->wrapped_method_metaclass) + # and the same issue occurs with CMOP::Method::Meta objects/: + && !$method->isa($self->_meta_method_class)) { $method->_make_compatible_with($self->method_metaclass); } $self->add_method($method->name => $method);