Skip Menu |

This queue is for tickets about the MooX-InsideOut CPAN distribution.

Report information
The Basics
Id: 118453
Status: resolved
Priority: 0/
Queue: MooX-InsideOut

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

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



Subject: an attribute with a clearer results in a croak from Method::Generate::Accessor::generate_method
Perl 5.22.1 Moo 2.002004 MooX::InsideOut 0.001003 The following code: package Foo; use Moo; use MooX::InsideOut; has nvalid => ( is => 'lazy', clearer => 'clear_nvalid', ); 1; results in Eval went very, very wrong: { my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; package Foo; no warnings 'closure'; sub clear_nvalid { ($_QUOTED,$_UNQUOTED) if 0; # BEGIN quote_sub PRELUDE package Method::Generate::Accessor::_Generated; BEGIN { $^H = 1762; ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUU\025"; %^H = ( ); } # END quote_sub PRELUDE delete $MooX_InsideOut_FIELDS->{$_[0]}->{"nvalid"} } $$_UNQUOTED = \&clear_nvalid; } 1; Global symbol "$MooX_InsideOut_FIELDS" requires explicit package name (did you forget to declare "my $MooX_InsideOut_FIELDS"?) at (eval 20) line 17. at /[...]/site_perl/5.22.1/Method/Generate/Accessor.pm line 202. Removing the clearer quiets everything down. Thanks, Diab
This was caused by a bug in Moo which has been fixed in 2.002005. Fixed in 0.001004.
On Mon Oct 31 18:00:12 2016, haarg wrote: Show quoted text
> This was caused by a bug in Moo which has been fixed in 2.002005. > > Fixed in 0.001004.
Thanks!