t/attribute/coerce.t fails with the following:
./t/attribute/coerce.t .... You cannot coerce an attribute (yes_coerce) unless its type (Str) has a coercion at /usr/local/lib/perl/5.14.2/Moose/Exception.pm line 38
Moose::Exception::_build_trace('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x2f4d1b8)') called at reader Moose::Exception::trace (defined at /usr/local/lib/perl/5.14.2/Moose/Exception.pm line 12) line 7
Moose::Exception::trace('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x2f4d1b8)') called at /usr/local/lib/perl/5.14.2/Moose/Exception.pm line 50
Moose::Exception::BUILD('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x2f4d1b8)', 'HASH(0x2f4d320)') called at /usr/local/lib/perl/5.14.2/Class/MOP/Method.pm line 131
Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x2ffd008)', 'Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x2f4d1b8)', 'HASH(0x2f4d320)') called at /usr/local/lib/perl/5.14.2/Moose/Object.pm line 59
Moose::Object::BUILDALL('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x2f4d1b8)', 'HASH(0x2f4d320)') called at /usr/local/lib/perl/5.14.2/Moose/Meta/Class.pm line 285
Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x2f5ba70)', 'HASH(0x2f4d320)') called at /usr/local/lib/perl/5.14.2/Moose/Object.pm line 30
Moose::Object::new('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion', 'attribute_name', 'yes_coerce', 'type_name', 'Str', 'params', 'HASH(0x2aa2910)') called at /usr/local/lib/perl/5.14.2/Moose/Util.pm line 54
Moose::Util::throw_exception('CannotCoerceAttributeWhichHasNoCoercion', 'attribute_name', 'yes_coerce', 'type_name', 'Str', 'params', 'HASH(0x2aa2910)') called at /usr/local/lib/perl/5.14.2/Moose/Meta/Attribute.pm line 398
Moose::Meta::Attribute::_process_coerce_option('Moose::Meta::Attribute', 'yes_coerce', 'HASH(0x2aa2910)') called at /usr/local/lib/perl/5.14.2/Moose/Meta/Attribute.pm line 267
Moose::Meta::Attribute::_process_options('Moose::Meta::Attribute', 'yes_coerce', 'HASH(0x2aa2910)') called at /usr/local/lib/perl/5.14.2/Moose/Meta/Attribute.pm line 58
Moose::Meta::Attribute::new('Moose::Meta::Attribute', 'yes_coerce', 'coerce', 1, 'isa', 'Str', 'definition_context', 'HASH(0x2c7c118)', 'is', 'ro') called at /usr/local/lib/perl/5.14.2/Moose/Meta/Attribute.pm line 106
Moose::Meta::Attribute::interpolate_class_and_new('Moose::Meta::Attribute', 'yes_coerce', 'definition_context', 'HASH(0x2c7c118)', 'is', 'ro', 'isa', 'Str', 'coerce', 1) called at /usr/local/lib/perl/5.14.2/Moose/Meta/Class.pm line 719
Moose::Meta::Class::_process_new_attribute('Moose::Meta::Class=HASH(0x2f24538)', 'yes_coerce', 'definition_context', 'HASH(0x2c7c118)', 'is', 'ro', 'isa', 'Str', 'coerce', 1) called at /usr/local/lib/perl/5.14.2/Moose/Meta/Class.pm line 712
Moose::Meta::Class::_process_attribute('Moose::Meta::Class=HASH(0x2f24538)', 'yes_coerce', 'definition_context', 'HASH(0x2c7c118)', 'is', 'ro', 'isa', 'Str', 'coerce', 1) called at /usr/local/lib/perl/5.14.2/Moose/Meta/Class.pm line 576
Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x2f24538)', 'yes_coerce', 'definition_context', 'HASH(0x2c7c118)', 'is', 'ro', 'isa', 'Str', 'coerce', 1) called at /usr/local/lib/perl/5.14.2/Moose.pm line 80
Moose::has('Moose::Meta::Class=HASH(0x2f24538)', 'yes_coerce', 'is', 'ro', 'isa', 'Str', 'coerce', 1) called at /usr/local/lib/perl/5.14.2/Moose/Exporter.pm line 408
Moose::has('yes_coerce', 'is', 'ro', 'isa', 'Str', 'coerce', 1) called at t/attribute/coerce.t line 25
http://cpansearch.perl.org/src/ETHER/Moose-2.1200/Changes
Change to 2.1100 2013-09-07 (TRIAL RELEASE):
- Many deprecated features have now been removed:
- setting coerce => 1 on an attribute whose type constraint has no coercion