Im not sure if this is a bug, though its currently preventing me from using MooseX::Storage in a
project, and I really want to.
I am calling freeze on a moose object of type ABC that implements a role DEF with a lazy built
attribute, call it xyz, of type XYZ.
Both ABC and XYZ use MooseX::Storage and are with Storage(format => 'JSON'); But I am not
able to serialize them
then print Dumper( $abc->freeze )
encountered object 'XYZ=HASH(0x7f971954fcb8)', but neither allow_blessed nor
convert_blessed settings are enabled at /Users/mobiusinversion/perl5/lib/perl5/JSON/Any.pm
line 510.
A fully working example with a test suite is attached. It appears the issue is MooseX::Storage
wants to inspect the attributes of an implemented role with a lazy build but then is not able to
see that the lazy built object also implements the JSON role.
Subject: | Example.tar.gz |
Message body not shown because it is not plain text.