New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISA warnings after aliasing packages #10562
Comments
From @cpansproutThis little script (part of a test I’m preparing for part of bug #75176)— use warnings; sub Barker::speak { "Woof!" } my $pet = bless [], "Pet"; @Dog::ISA = 'Latrator'; $pet->speak; undef $tike_glob; —produces these warnings, as of perl 5.10.0: Can't locate package Dog for @Pet::ISA at - line 18. Flags: Site configuration information for perl 5.13.3: Configured by sprout at Thu Aug 12 17:53:37 PDT 2010. Summary of my perl5 (revision 5 version 13 subversion 3 patch v5.13.3-193-g798ae1b) configuration: Locally applied patches: @INC for perl 5.13.3: Environment for perl 5.13.3: |
From @cpansproutOn Aug 22, 2010, at 12:18 PM, Father Chrysostomos wrote:
It’s worse. A slight tweak to the script shows that the warnings are not erroneous, but show a real bug: When Tike is aliased to Dog, Dog’s methods are ignored, but not those of its superclass. use warnings; sub Barker::speak { warn "Woof!" } my $pet = bless [], "Pet"; $pet->speak; sub Dog::speak { warn "Hello" } $pet->speak; |
From @cpansproutOn Sun Oct 24 21:59:55 2010, some naughty individual wrote:
Fixed by 8b9e80a. |
@cpansprout - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#77358 (status was 'resolved')
Searchable as RT77358$
The text was updated successfully, but these errors were encountered: