Skip Menu |

This queue is for tickets about the Class-Method-Modifiers-Fast CPAN distribution.

Report information
The Basics
Id: 43167
Status: resolved
Priority: 0/
Queue: Class-Method-Modifiers-Fast

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

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



Subject: Method modifiers affect all classes in the whole inheritance tree
Hi きたの, This was reported against Mouse but I'm pretty sure it's a Class::Method::Modifiers::Fast bug. Could you look into it? https://rt.cpan.org/Ticket/Display.html?id=42992 Thanks, Shawn
I've not actually tested this, but looking at the code I suspect that Mouse's problem arises because _install_modifier is getting $hit from $into->can($name) instead of \&$qualified (as below). sub _install_modifier { my $into = shift; my $type = shift; my $code = pop; my @names = @_; for my $name (@names) { my $hit = $into->can($name) or confess "The method '$name' is not found in the inheritance hierarchy for class $into"; my $qualified = $into.'::'.$name;