Skip Menu |

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

Report information
The Basics
Id: 46730
Status: resolved
Priority: 0/
Queue: MooseX-Params-Validate

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

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



Subject: MX::P::V profile caching does not work with method modifiers
Another critical bug; when a MX::PV is used like this: around foo => sub { validated_hash(...) } The cache key is set to: CACHE KEY = Class::MOP::Class:::around This means EVERY method modifier in your application now has this profile, which of course breaks things horribly.
On Mon Jun 08 09:43:01 2009, KANE wrote: Show quoted text
> Another critical bug; when a MX::PV is used like this: > > around foo => sub { > validated_hash(...) > } > > The cache key is set to: > CACHE KEY = Class::MOP::Class:::around > > This means EVERY method modifier in your application now has this > profile, which of course breaks things horribly.
The next version of Class::MOP will give each modifier a unique name, which should fix this problem.