Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 92246
Status: resolved
Priority: 0/
Queue: Moose

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

Bug Information
Severity: Critical
Broken in: 2.1201
Fixed in: 2.1203



Subject: bug in Moose exceptions handler while loading parent class
Hi, there is a bug in Moose exceptions handler while loading parent class. ---------------------------------- file 1.pl use App; 1; __END__ ---------------------------------- file App.pm use Moose; extends qw(App1); around aaa => sub { }; 1; __END__ ---------------------------------- file App1.pm use Moose; use Nonexistent::Package; # <--- this package is not exists sub aaa { } 1; __END__ I expect the following error message when running 1.pl: Can't locate Nonexistent/Package.pm in @INC ( ..., but got: The method 'aaa' was not found in the inheritance hierarchy for App... App1.pm has compilation errors due to can't load Nonexistent::Package, but Moose ignore and hide this errors. If I comment "around aaa => sub { };" in App.pm -> App.pm will be loaded without any exception, which is totally wrong.
This looks to be caused via https://rt.cpan.org/Ticket/Display.html?id=86394 -- so when that is fixed, we'll update the prereq to require the new version.
Module::Runtime has been fixed, and the latest version of Moose depends on this fixed version.