|Subject:||around modifier in role applied to instance does not fire...sometimes|
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.
Message body not shown because it is not plain text.