Class::MOP::check_package_cache_flag() is mro::get_pkg_gen which requires an argument 0_33
Chris Prather [Thu, 13 Dec 2007 03:02:03 +0000 (03:02 +0000)]
lib/Moose/Meta/Class.pm

index 8f25e1d..af5c401 100644 (file)
@@ -110,7 +110,7 @@ sub get_method_map {
     my $self = shift;
 
     if (defined $self->{'$!_package_cache_flag'} &&
-                $self->{'$!_package_cache_flag'} == Class::MOP::check_package_cache_flag()) {
+                $self->{'$!_package_cache_flag'} == Class::MOP::check_package_cache_flag(blessed $self)) {
         return $self->{'%!methods'};
     }