|Subject:||policy object violation() method called in different package|
|Date:||Thu, 08 Jul 2010 07:48:44 +1000|
|To:||bug-Perl-Critic [...] rt.cpan.org|
|From:||Kevin Ryde <user42 [...] zip.com.au>|
I created a violation object with $policy->violation from within a helper utilities package and found the resulting $violation object had its $violation->policy coming back as the utilities package, not the originating policy object's class. I see there's stuff in Perl::Critic::Violation->new using the caller package, but I hoped that $policy->violation on a policy object would not be afflicted by that :-).