Skip Menu | will be shut down on March 1st, 2021.

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

Report information
The Basics
Id: 69544
Status: new
Priority: 0/
Queue: MooseX-Singleton

Owner: Nobody in particular
Requestors: mdorman [...]

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

Subject: around modifier in role applied to instance does not fire...sometimes
Download (untitled) / with headers
text/plain 877b
I have a class, composed of a couple of roles. I want to use it as a singleton class, but I also, in some cases (testing), want to apply one or more additional roles to the singleton at runtime, one of which wraps an attribute in one of the hard-coded roles. This seemed straightforward enough (Role->meta->apply (Class->instance), but when I called Class->wrapped I got back the unwrapped result. I initially assumed that this was just not possible with MooseX::Singleton, but I looked at the ref type of Class->instance pre and post apply, and they differed, so then I tried Class->instance- Show quoted text
>wrapped, and it worked---I got the wrapped output.
So I think there's a bug somewhere, though it is not at all obvious to me where. I created a small test case, which is attached---untar and then do 'perl broken.t' in the directory and you'll see the differing output.
Subject: t.tar.gz
Download t.tar.gz
application/x-gzip 607b

Message body not shown because it is not plain text.

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

Please report any issues with to