Subject: | BUILD method invoked multiple times in MooseX::POE classes |
It seems that MooseX::POE currently invokes the BUILD method of a class
using MooseX::POE twice -- once when the "new" method defined in
MooseX::POE::Meta::Trait::Object calls meta->create_object, and another
when it calls BUILDALL at the end of the method.
The attached test case outputs the text "build" twice with MooseX::POE
0.211.
Subject: | moosex-poe-multiple-build.pl |
{
package mxp;
use MooseX::POE;
sub BUILD
{
print STDERR "build\n";
}
};
{
package main;
use POE;
my $mxp = mxp->new;
POE::Kernel->run;
};
1;