Use class_of in CMOP::Object::_new
Shawn M Moore [Sat, 28 Mar 2009 20:04:24 +0000 (16:04 -0400)]
lib/Class/MOP/Object.pm

index f39203a..f80485f 100644 (file)
@@ -18,7 +18,7 @@ sub meta {
 }
 
 sub _new {
-    shift->meta->new_object(@_);
+    Class::MOP::class_of(shift)->new_object(@_);
 }
 
 # RANT: