Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 65436
Status: new
Priority: 0/
Queue: Mouse

People
Owner: Nobody in particular
Requestors: tokuhirom+cpan [...] gmail.com
Cc:
AdminCc:

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



Subject: You are overwriting a locally defined method (meta) with an accessor
Show quoted text
>||
% perl -e 'package Foo; use Mouse; has "meta" => (is => "rw")' ||< This one liner does not report any warnings, but so Moose says following Show quoted text
>||
% perl -e 'package Foo; use Moose; has "meta" => (is => "rw")' You are overwriting a locally defined method (meta) with an accessor at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Moose/Meta/Attribute.pm line 663 Moose::Meta::Attribute::_process_accessors('Moose::Meta::Attribute=HASH(0x100adcee0)', 'accessor', 'meta', undef) called at /Users/tokuhirom/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/darwin-2level/Class/MOP/Attribute.pm line 356 Class::MOP::Attribute::install_accessors('Moose::Meta::Attribute=HASH(0x100adcee0)') called at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Moose/Meta/Attribute.pm line 623 Moose::Meta::Attribute::install_accessors('Moose::Meta::Attribute=HASH(0x100adcee0)') called at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Class/MOP/Class.pm line 789 Class::MOP::Class::__ANON__() called at /Users/tokuhirom/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Try/Tiny.pm line 76 eval {...} called at /Users/tokuhirom/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x100add780)', 'Try::Tiny::Catch=REF(0x100af8390)') called at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Class/MOP/Class.pm line 794 Class::MOP::Class::_post_add_attribute('Moose::Meta::Class=HASH(0x100aa5e10)', 'Moose::Meta::Attribute=HASH(0x100adcee0)') called at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Class/MOP/Mixin/HasAttributes.pm line 45 Class::MOP::Mixin::HasAttributes::add_attribute('Moose::Meta::Class=HASH(0x100aa5e10)', 'Moose::Meta::Attribute=HASH(0x100adcee0)') called at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Moose/Meta/Class.pm line 304 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x100aa5e10)', 'meta', 'definition_context', 'HASH(0x1009981c0)', 'is', 'rw') called at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Moose.pm line 70 Moose::has('Moose::Meta::Class=HASH(0x100aa5e10)', 'meta', 'is', 'rw') called at /Users/tokuhirom/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/darwin- 2level/Moose/Exporter.pm line 359 Moose::has('meta', 'is', 'rw') called at -e line 1 ||< This is incompatible.