Skip Menu |

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

Report information
The Basics
Id: 62219
Status: resolved
Priority: 0/
Queue: MooseX-Role-Parameterized

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

Bug Information
Severity: Normal
Broken in: 0.19
Fixed in: (no value)



Subject: Bleadperl b2a2a901 breaks MooseX::Role::Parameterized 0.19
It's too easy to lose track, so I believe it is justified to report this one a second time: http://rt.perl.org/rt3/Ticket/Display.html?id=78244
From: davem [...] iabyn.com
On Mon Oct 18 00:40:10 2010, ANDK wrote: Show quoted text
> It's too easy to lose track, so I believe it is justified to report this > one a second time: > > http://rt.perl.org/rt3/Ticket/Display.html?id=78244
Just following up from the perl5 ticket, the issue is that since 5.13.6, perl cleans up any temporaries at the end of each map iteration, rather than some time after the end of the map. This means that in t/006-requires.t, in requires_names(), the temporary object created by MyRole::Requires->meta->generate_role() gets freed (and its destructor called) at the end of the map {} block, which screws up the test. I did a proof-of-concept fix that pushes each new generate_role() object to an array (so they don't get freed) and the error went away. A similar issue applies to t/007-excludes.t.
Fixed by 0.20, thanks Andreas and Dave. Shawn