Skip Menu |

This queue is for tickets about the Moo CPAN distribution.

Report information
The Basics
Id: 83508
Status: resolved
Priority: 0/
Queue: Moo

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

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



Subject: Inflated Moose meta-classes lose methods from roles if attributes are present
This is related to rt#80492. The issue was reported by Bill Moseley on the Moose mailing list. If you have a Moo class that brings in methods from a role, and also has an attribute declared, the inflated meta-class doesn't include the methods from the role. This means things like around modifiers don't work. The change in RT#80492 registers the methods in the meta-class, but once an attribute is added, they are forgotten again.
I've pushed a test for this to the rt83508 branch. I also made an attempt to fix this by moving the method registration to after the attribute registration. That seems to fix this issue, but breaks some other things.
And another slight revision has this passing all of the tests.
Fixed in Moo 1.001000