This queue is for tickets about the Class-Accessor-Grouped CPAN distribution.

Report information
The Basics
Id:
43702
Status:
resolved
Priority:
Low/Low

People
Owner:
claco [...] cpan.org (email delivery suspended)
Requestors:
ribasushi [...] leporine.io
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: CAG seems to lose class values set via set_inherited in a C3::Componentised environment
The full test suite is attached (tarball as multiple files are required). Here is the failing part of the test with an explanation: Comp2 is a simple class which 'use base's Class::C3::Componentised. First we load_components the 'Base' component which does: use base qw/Class::C3::Componentised Class::Accessor::Grouped/; __PACKAGE__->mk_group_accessors ('inherited', 'amount_of_emos'); __PACKAGE__->set_inherited ( amount_of_emos => 6 ); Then we load_components another component 'Extra', which is identical to Base, except that it provides a different accessor/value. Here is the test: ok (Comp2->load_components (qw/Base/), 'Base loaded'); can_ok (Comp2 => 'amount_of_emos'); is (Comp2->amount_of_emos, 6, 'Base accessor has value'); dies_ok (sub { Comp2->amount_of_goths }, 'Extra accessor not there yet'); ok (Comp2->load_components ('Extra'), 'Extra loaded'); can_ok (Comp2 => 'amount_of_emos'); is (Comp2->amount_of_emos, 6, 'Base accessor still has value'); can_ok (Comp2 => 'amount_of_goths'); is (Comp2->amount_of_goths, 666, 'Extra accessor has value'); ^^^ This last part fails - the value 666 disappears, even though it is explicitly set_inherited() in Component::Extra
Subject: componentised_test.tar.bz2

Message body not shown because it is not plain text.

An "mst approved" fix was committed at http://dev.catalyst.perl.org/svnweb/bast/revision/?rev=5781 . A release (or healthy bashing) would be greatly appreciated :)
Released to CPAN as 0.08003 shortly.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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