Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MooseX-AbstractFactory CPAN distribution.

Report information
The Basics
Id: 59776
Status: new
Priority: 0/
Queue: MooseX-AbstractFactory

People
Owner: Nobody in particular
Requestors: mila [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: do not ignore eval errors!
when you create an instance $obj from an class which is broken ('BrokenClass'), you get an empty instance back. my $obj = My::Factory->create('BrokenClass',{foo=>42}); $obj is now blessed to 'BrokenClass', but it has no methods because 'use BrokenClass' failed... unfortunately this is ignored (in MooseX::AbstractFactory::Role)... this leads to errors which are nasty to isolate... my recommendation is to just add 'die $@ if $@;' after 'eval "use $iclass";' (line 25 in MooseX/AbstractFactory/Role.pm)