[Bug 461285] New: Any use of Class::MethodMaker spews pages of warnings to console

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 5 16:12:45 UTC 2008


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Any use of Class::MethodMaker spews pages of warnings to console

https://bugzilla.redhat.com/show_bug.cgi?id=461285

           Summary: Any use of Class::MethodMaker spews pages of warnings
                    to console
           Product: Fedora
           Version: 9
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: medium
         Component: perl-Class-MethodMaker
        AssignedTo: dgregor at redhat.com
        ReportedBy: berrange at redhat.com
         QAContact: extras-qa at fedoraproject.org
                CC: fedora-perl-devel-list at redhat.com
   Estimated Hours: 0.0
    Classification: Fedora


Description of problem:
Since the upgrade to perl 5.10, any application which uses Class::MethodMaker
spews pages of warnings to stderr. This makes such apps essentially unusable if
they're console based

See this demo:

# cat > cmm.pl <<EOF
package Foo;

use Class::MethodMaker
    new_with_init => "new",
    get_set => [qw(bar)];

sub init {
    my $self = shift;

    $self->bar("hello");
}

package main;

my $foo = Foo->new;

print $foo->bar, "\n";

$foo->bar("world");

print $foo->bar, "\n";
EOF



Version-Release number of selected component (if applicable):
perl-5.10.0-31.fc9.i386
perl-Class-MethodMaker-2.11-1.fc9.i386


How reproducible:
Always

Steps to Reproduce:
1. perl cmm.pl
2.
3.

Actual results:
Name " Foo::bar" used only once: possible typo at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm
line 781.
Name " Foo::get_bar" used only once: possible typo at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm
line 781.
Name " Foo::new" used only once: possible typo at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm
line 781.
Name " Foo::bar_reset" used only once: possible typo at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm
line 781.
Name " Foo::bar_isset" used only once: possible typo at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm
line 781.
Name " Foo::set_bar" used only once: possible typo at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm
line 781.
Name " Foo::clear_bar" used only once: possible typo at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm
line 781.
hello
world

Expected results:
hello
world

Additional info:

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-perl-devel-list mailing list