Skip Menu |

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

Report information
The Basics
Id: 42690
Status: resolved
Priority: 0/
Queue: MooseX-Singleton

People
Owner: Nobody in particular
Requestors: slushie [...] gmail.com
Cc:
AdminCc:

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



Subject: MooseX::Singleton doesn't call new when created automatically
Date: Thu, 22 Jan 2009 16:40:11 -0600
To: bug-MooseX-Singleton [...] rt.cpan.org
From: Josh <slushie [...] gmail.com>

Message body is not shown because sender requested not to inline it.

If I have a singleton object and try to access one of its members without first creating the instance (with Singleton->new or ->instance), construct_instance is called via MooseX::Singleton::Meta::Instance (in get_singleton_instance, I believe). This doesn't call new on Moose::Object in the end, thus skipping my BUILDARGS, et al. I have attached a test case isolating the issue.