Skip Menu |

This queue is for tickets about the XML-Pastor CPAN distribution.

Report information
The Basics
Id: 39692
Status: resolved
Worked: 10 min
Priority: 0/
Queue: XML-Pastor

People
Owner: aulusoy [...] cpan.org
Requestors: TIMB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.0.3
Fixed in: (no value)



Subject: Undefined subroutine &XML::Pastor::Schema::Parser::_sprint_xml_element
There are lots of calls to _sprint_xml_element (note the leading underscore) in XML::Pastor::Schema::Parser, but there's no such sub. There is an sprint_xml_element (no leading underscore) sub imported. (This simple error suggests very poor test coverage. Try using Devel::Cover!) A workaround is: # bug fix for 1.0.3 *XML::Pastor::Schema::Parser::_sprint_xml_element = \&XML::Pastor::Schema::Parser::sprint_xml_element unless defined &XML::Pastor::Schema::Parser::_sprint_xml_element;
Patch attached
--- XML/Pastor/Schema/Parser-1.0.3.pm 2009-04-02 14:32:39.000000000 -0400 +++ XML/Pastor/Schema/Parser.pm 2009-04-02 14:42:09.000000000 -0400 @@ -18,7 +18,8 @@ use XML::Pastor::Stack; use XML::Pastor::Schema; -use XML::Pastor::Util qw(getAttributeHash sprint_xml_element); +use XML::Pastor::Util qw(getAttributeHash); +BEGIN { *_sprint_xml_element = \&XML::Pastor::Util::sprint_xml_element; } use Scalar::Util qw(reftype); our @ISA = qw(Class::Accessor);
I hit this one today too. Thanks for the patch suggestions Tim, ikegami! j
This is now fixed for the upcoming release (1.0.4).