|Subject:||Method modifiers don't get applied when overriding modified parent methods|
|Date:||Mon, 25 Aug 2014 00:15:47 +0200|
|To:||bug-Class-Method-Modifiers [...] rt.cpan.org|
|From:||Mark Flickinger <maflick88 [...] gmail.com>|
Hello, I am using Class::Method::Modifiers v2.10 and I ran into an issue where method modifiers are not getting applied when a subclass overrides a parent method with modifiers. I've attached a test that shows an example of this failure. Feel free to tell me if this is just a bad design pattern I'm using, but to add context to how this came about, I should note that I am inheriting from a parent that implements a Moo role, and the role is what has the modifiers. An easy solution for my code was to reapply the role in the child, but I'm wondering if there is an obvious fix that would make that unnecessary. I'm having trouble visualizing how Class::Method::Modifiers would know methods are getting subclassed, so this may be something better done at the Moo/Moose level during inheritance. Worst case scenario, it may be nice just to add a warning about this in the docs. Thanks for you work on this module, Mark Flickinger
Message body is not shown because sender requested not to inline it.