#545899 $self->next::method can't find UNIVERSAL

Package:
perl
Source:
perl
Description:
Larry Wall's Practical Extraction and Report Language
Submitter:
Anthony DeRobertis
Date:
2021-05-17 18:57:03 UTC
Severity:
normal
#545899#5
Date:
2009-09-09 21:03:01 UTC
From:
To:
Example code:

	$ cat /tmp/t2.pl ; echo '####'; perl /tmp/t2.pl
	my $f = bless {}, 'Foo';
	$f->isa('Foo');

	package Foo;
	use mro;

	sub isa {
			my $self = shift;
			$self->next::method(@_);
	}

	1;
	####
	No next::method 'isa' found for Foo at /usr/share/perl/5.10/mro.pm line 26.

It seems like that really ought to work. It does work if you use
$self->SUPER::isa instead.

#545899#10
Date:
2009-09-15 18:48:14 UTC
From:
To:
forwarded 545899 http://rt.perl.org/rt3/Public/Bug/Display.html?id=68654
thanks

This is also [perl #68654], reported upstream three weeks ago without any
response yet.

#545899#17
Date:
2010-12-01 14:40:51 UTC
From:
To:
According to perl rt, this has been resolved in a5cd004. So I guess in a
future Perl release, so not yet in Debian.