When we reinitialize from the super meta class, we need to also reset
Dave Rolsky [Fri, 29 Aug 2008 18:44:17 +0000 (18:44 +0000)]
constructor & destructor class from the super's meta.

lib/Moose/Meta/Class.pm

index 43b74f6..7c2bf9f 100644 (file)
@@ -356,6 +356,9 @@ sub _fix_metaclass_incompatability {
             method_metaclass    => $super_meta->method_metaclass,
             instance_metaclass  => $super_meta->instance_metaclass,
         );
+
+        $self->$_( $super_meta->$_ )
+            for qw( constructor_class destructor_class );
     }
 
     return $self;