With 2.2003, the error in my test case becomes "You are overwriting a
accessor [sic].." (See below for the new stack trace.) If I am
understanding correctly, this is now exposing a bug in Moo. Is there a Moo
issue tracking the problem?
----
You are overwriting a accessor (_data_section_end) for the
_data_section_end attribute with a new reader method for the
_data_section_end attribute at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/Attribute.pm
line 1094.
Moose::Meta::Attribute::_process_accessors(Moose::Meta::Attribute=HASH(0x2bc7618),
"reader", "_data_section_end", undef) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Class/MOP/Attribute.pm
line 450
Class::MOP::Attribute::install_accessors(Moose::Meta::Attribute=HASH(0x2bc7618))
called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/Attribute.pm
line 1014
Moose::Meta::Attribute::install_accessors(Moose::Meta::Attribute=HASH(0x2bc7618))
called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Class/MOP/Class.pm
line 899
Class::MOP::Class::try {...} () called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/Try/Tiny.pm
line 103
eval {...} called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/Try/Tiny.pm
line 94
Try::Tiny::try(CODE(0x2b6ea68), Try::Tiny::Catch=REF(0x2bad068)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Class/MOP/Class.pm
line 904
Class::MOP::Class::_post_add_attribute(Moose::Meta::Class=HASH(0x2b792a0),
Moose::Meta::Attribute=HASH(0x2bc7618)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Class/MOP/Mixin/HasAttributes.pm
line 39
Class::MOP::Mixin::HasAttributes::add_attribute(Moose::Meta::Class=HASH(0x2b792a0),
Moose::Meta::Attribute=HASH(0x2bc7618)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/Class.pm
line 583
Moose::Meta::Class::add_attribute(Moose::Meta::Class=HASH(0x2b792a0),
"_data_section_end", "init_arg", undef, "is", "rw", "writer",
"_set_data_section_end", ...) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/Moo/HandleMoose.pm
line 169
Moo::HandleMoose::inject_real_metaclass_for("MaxMind::DB::Reader::XS")
called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/Moo/HandleMoose/FakeMetaClass.pm
line 23
Moo::HandleMoose::FakeMetaClass::can(Moo::HandleMoose::FakeMetaClass=HASH(0x216f1a8),
"does_role") called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Util.pm
line 76
Moose::Util::does_role(MaxMind::DB::Reader::XS=HASH(0x27d1520),
"MaxMind::DB::Reader::Role::Reader") called at (eval 224) line 3
Eval::Closure::Sandbox_164::__ANON__(MaxMind::DB::Reader::XS=HASH(0x27d1520))
called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/TypeConstraint.pm
line 161
Moose::Meta::TypeConstraint::check(Moose::Meta::TypeConstraint::Role=HASH(0x2769af0),
MaxMind::DB::Reader::XS=HASH(0x27d1520)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/Attribute.pm
line 1331
Moose::Meta::Attribute::verify_against_type_constraint(Moose::Meta::Attribute=HASH(0x2050850),
MaxMind::DB::Reader::XS=HASH(0x27d1520), "instance", Test=HASH(0x129d4c0))
called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/Attribute.pm
line 1318
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Attribute=HASH(0x2050850),
MaxMind::DB::Reader::XS=HASH(0x27d1520), Test=HASH(0x129d4c0)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/Attribute.pm
line 515
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Attribute=HASH(0x2050850),
Moose::Meta::Instance=HASH(0x27b53f0), Test=HASH(0x129d4c0),
HASH(0x2b58558)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Class/MOP/Class.pm
line 526
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x201bed8),
HASH(0x2b58558)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Class/MOP/Class.pm
line 496
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x201bed8),
HASH(0x2b58558)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Meta/Class.pm
line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x201bed8),
HASH(0x2b58558)) called at
/home/greg/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/Moose/Object.pm
line 24
Moose::Object::new("Test", "mmdb_reader",
MaxMind::DB::Reader::XS=HASH(0x27d1520)) called at test.pl line 15
On Mon, Jan 30, 2017 at 10:35 AM Karen Etheridge via RT <
bug-Moose@rt.cpan.org> wrote:
Show quoted text