Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 62678
Status: rejected
Priority: 0/
Queue: MooseX-SetOnce

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

Bug Information
Severity: Important
Broken in: 0.100471
Fixed in: (no value)



package Bug; use Moose; use MooseX::SetOnce; has attr => ( is => 'rw', traits => [ 'SetOnce' ], ); no Moose; my $bug = Bug->new({attr => undef}); $bug->attr(1);
Here's the exception output: cannot change value of SetOnce attribute at /usr/local/share/perl/5.10.1/MooseX/SetOnce.pm line 16 MooseX::SetOnce::Attribute::_ensure_unset('Class::MOP::Class::__A NON__::SERIAL::1=HASH(0xa6d2170)', 'Bug=HASH(0xa6cfae8)') called at accessor attr defined at Bug.pm line 14 Bug::attr('Bug=HASH(0xa6cfae8)', 1) called at Bug.pm line 14
set to undef is still set -- rjbs