Skip Menu |

This queue is for tickets about the MooseX-ClassAttribute CPAN distribution.

Report information
The Basics
Id: 84263
Status: resolved
Priority: 0/
Queue: MooseX-ClassAttribute

People
Owner: Nobody in particular
Requestors: jonathan.stowe [...] db.com
Cc:
AdminCc:

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



Subject: MooseX::ClassAttribute appears to be broken with Moose 2.008
Date: Thu, 28 Mar 2013 16:50:36 +0100
To: "'bug-moosex-classattribute [...] rt.cpan.org'" <bug-moosex-classattribute [...] rt.cpan.org>
From: Jonathan Stowe <jonathan.stowe [...] db.com>
Hi, It seems that the interface for Moose::Util::_caller_info() was changed at the current release of Moose and has broken "class_has". The subroutine was previously returning a HASHREF but appears now to be returning a hash instead. This could of course be a mistake on the part of the Moose people but as the subroutine is "private" it is probably their prerogative. I fixed it by changing the line 37 of ClassAttribute.pm to my %options = ( definition_context => { Moose::Util::_caller_info() }, @_); Alternatively you could supply the equivalent of _caller_info as it is only a couple of lines of code. Thanks for making a useful module. /J\ --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.