Skip Menu |

This queue is for tickets about the WWW-Bugzilla CPAN distribution.

Report information
The Basics
Id: 6603
Status: resolved
Priority: 0/
Queue: WWW-Bugzilla

People
Owner: Nobody in particular
Requestors: mcummings [...] gentoo.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.4
Fixed in: 0.2



Subject: Failure trying to use module
Attempting to use WWW::Bugzilla throws an exception. Following is just a perl -e use statement result. perl -e "use WWW::Bugzilla;" The component 'assigned_to' has already been installed in class -->WWW::Bugzilla<-- as a HASH(0x826c15c) (this time a scalar) at /usr/lib/perl5/vendor_perl/5.8.2/WWW/Bugzilla.pm line 196 BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.2/WWW/Bugzilla.pm line 198. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
From: mcummings [...] gentoo.org
I'm wondering now if this isn't related to Class::MethodMaker versions (2.02 on this end).
This isn't quite right, but at line 196 replacing with this new syntax seems to at least return a functioning bugzilla module: use Class::MethodMaker [ new => 'new', hash => 'hash_init', scalar => [{'get_set' => [ FIELDS ]}] ]; Sorry for all the posts tonight :)
From: at [...] altlinux.org
The attached patch fixes the problem. -- Alexey Tourbin ALT Linux Team
--- WWW-Bugzilla-0.4/Bugzilla.pm- 2004-03-22 12:22:35 +0000 +++ WWW-Bugzilla-0.4/Bugzilla.pm 2005-06-14 13:33:41 +0000 @@ -7,7 +7,7 @@ use warnings; use WWW::Mechanize; use Carp qw(croak); -use constant FIELDS => qw( product version component status assigned_to resolution dup_id assigned_to summary bug_number description os platform severity priority cc url add_cc target_milestone status_whiteboard keywords depends_on blocks additional_comments ); +use constant FIELDS => qw( product version component status assigned_to resolution dup_id summary bug_number description os platform severity priority cc url add_cc target_milestone status_whiteboard keywords depends_on blocks additional_comments ); my %new_field_map = ( product => 'product', version => 'version',