From: gfx Date: Wed, 15 Jul 2009 23:58:23 +0000 (+0900) Subject: Remove has_method() in _immutable_metaclass(), which always returns false X-Git-Tag: 0.90~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a142dd51c410623246cb36d5e5f718a6a22efea4;p=gitmo%2FClass-MOP.git Remove has_method() in _immutable_metaclass(), which always returns false --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index bbb3158..3bf20ef 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1153,7 +1153,6 @@ sub _immutable_metaclass { Class::MOP::load_class($trait); for my $meth ( Class::MOP::Class->initialize($trait)->get_all_methods ) { my $meth_name = $meth->name; - next if $immutable_meta->has_method( $meth_name ); if ( $immutable_meta->find_method_by_name( $meth_name ) ) { $immutable_meta->add_around_method_modifier( $meth_name, $meth->body );