Skip Menu |
 

This queue is for tickets about the Object-InsideOut CPAN distribution.

Report information
The Basics
Id: 23629
Status: resolved
Priority: 0/
Queue: Object-InsideOut

People
Owner: Nobody in particular
Requestors: zendonut [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.23
Fixed in: 2.24



Subject: Lots of Perl warnings thrown with bad :Arg attribute
Download (untitled) / with headers
text/plain 979b
If, in my Object::InsideOut-using class, I declare an array that uses an :Arg attribute but forget to assign it a Name, Object::InsideOut itself throws several warnings when I try to run my code. For example, in my own code, if I have a declaration like this: my @xml_node :Field :Type(XML::LibXML::Element) :Arg(Mandatory => 1) # Uh oh, no Name set :Acc(Name => 'xml_node'); Then running my program results in this: Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line 2049. Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line 2054. Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line 2056. Use of uninitialized value in hash element at /Library/Perl/5.8.6/Object/InsideOut.pm line 2059. They all go away if I fix my own code. I'd submit a patch, but I'm not going to guess at how you want to handle user errors like this.
From: JDHEDDEN [...] cpan.org
Download (untitled) / with headers
text/plain 137b
Show quoted text
> :Arg(Mandatory => 1) # Uh oh, no Name set
Thanks for the bug report. I have now fixed this and posted v2.24 to CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.