Skip Menu |
 

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 79987
Status: rejected
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: develop [...] traveljury.com
Cc:
AdminCc:

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



Subject: base_class_roles clobbered by extends
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1349289064-4661-7"
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 218
Download (untitled) / with headers
text/plain 218b
A role added to a class with Moose::Exporter->setup_import_methods( base_class_roles....) gets clobbered when the same class is extend'ed. See attached test case. Class Baz_3 should do role Foo::Role, but it doesn't
Subject: test.tar.gz
MIME-Version: 1.0
Content-Type: application/x-tar; name="test.tar.gz"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="test.tar.gz"
Content-Transfer-Encoding: base64
Content-Length: 514
Download test.tar.gz
application/x-tar 514b

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-7300-1349798908-299.79987-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 178
Download (untitled) / with headers
text/plain 178b
Apparently not a bug as using extends changes the base_class, so the role is expected not to be there. Suggested fix to my use case is to use init_meta to apply the role instead


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.