Revision history for Class::Accessor::Grouped.
+0.10006 2011-12-30 03:52 (UTC)
+ - Silence warnings resulting from incomplete can() overrides
+ hiding get/set_simple methods
+
0.10005 2011-12-26 12:43 (UTC)
- Depend on newer bugfixed Class::XSAccessor
- Repack with correct metadata (RT#73100)
}
}
-our $VERSION = '0.10005';
+our $VERSION = '0.10006';
$VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases
# when changing minimum version don't forget to adjust Makefile.PL as well
# this block over and over again
my $resolved_implementation = $cached_implementation->{$current_class} || do {
if (
- $current_class->can('get_simple') == $original_simple_getter
+ ($current_class->can('get_simple')||0) == $original_simple_getter
&&
- $current_class->can('set_simple') == $original_simple_setter
+ ($current_class->can('set_simple')||0) == $original_simple_setter
) {
# nothing has changed, might as well use the XS crefs
#
# if after this shim was created someone wrapped it with an 'around',
# we can not blindly reinstall the method slot - we will destroy the
# wrapper. Silently chain execution further...
- if ( !$expected_cref or $expected_cref != $current_class->can($methname) ) {
+ if ( !$expected_cref or $expected_cref != ($current_class->can($methname)||0) ) {
# there is no point in re-determining it on every subsequent call,
# just store for future reference