Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 41250
Status: rejected
Priority: 0/
Queue: Mouse

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

Bug Information
Severity: Critical
Broken in: 0.11
Fixed in: (no value)



Subject: Mouse::Meta::Class->superclasses is read-only...
I was tracking down one of those "it works for some people, but not for others" and discovered that the problem was it broke when Squirrel selected Mouse, but worked fine with Moose. On further inspection, it seems that calling Mouse::Meta::Class::superclasses doesn't make any attempt to set @ISA, which means the Mouse version of 'extends' is a no-op... -- www.jasonkohles.com
Subject: Re: [rt.cpan.org #41250] Mouse::Meta::Class->superclasses is read-only...
Date: Wed, 26 Nov 2008 16:13:45 -0500
To: bug-Mouse [...] rt.cpan.org
From: Sartak <sartak [...] gmail.com>
Show quoted text
> On further inspection, it seems that calling > Mouse::Meta::Class::superclasses doesn't make any attempt to set @ISA, > which means the Mouse version of 'extends' is a no-op...
Hi Jason, Mouse::Meta::Class->{superclasses} is actually a reference to the class' @ISA (I set this in Mouse::Meta::Class::new). So when we say: @{ $self->{superclasses} } = @_; So it really is setting @ISA. We have quite a few tests that would break if superclasses weren't properly set. If you can get me a failing test, I'd be happy to track down and fix the issue. Shawn
Subject: Re: [rt.cpan.org #41250] Mouse::Meta::Class->superclasses is read-only...
Date: Tue, 2 Dec 2008 21:58:19 -0500
To: bug-Mouse [...] rt.cpan.org
From: Jason Kohles <email [...] jasonkohles.com>
On Nov 26, 2008, at 4:14 PM, Shawn M Moore via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=41250 > >
>> On further inspection, it seems that calling >> Mouse::Meta::Class::superclasses doesn't make any attempt to set >> @ISA, >> which means the Mouse version of 'extends' is a no-op...
> > Hi Jason, > > Mouse::Meta::Class->{superclasses} is actually a reference to the > class' @ISA (I set this in Mouse::Meta::Class::new). So when we say: > > @{ $self->{superclasses} } = @_; > > So it really is setting @ISA. We have quite a few tests that would > break if superclasses weren't properly set. >
Hmm, I must have missed that when looking through the code... Show quoted text
> If you can get me a failing test, I'd be happy to track down and fix > the issue. >
I'll go back through my code again and see if I can figure out what might have been preventing the superclass from being set... -- Jason Kohles, RHCA RHCDS RHCE email@jasonkohles.com - http://www.jasonkohles.com/ "A witty saying proves nothing." -- Voltaire