[OpenSRF-GIT] OpenSRF branch master updated. 951d97a32db426874c4bb6314e473660d765f302

Evergreen Git git at git.evergreen-ils.org
Fri Mar 7 13:04:17 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".

The branch, master has been updated
       via  951d97a32db426874c4bb6314e473660d765f302 (commit)
      from  d3499f22bb56a1f153d068df2f66a56867ec5560 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 951d97a32db426874c4bb6314e473660d765f302
Author: Bill Erickson <berick at esilibrary.com>
Date:   Mon May 13 16:19:51 2013 -0400

    LP#1179660: remove OpenSRF.pm AUTOLOAD
    
    Instead of simply producing an error message in the OpenSRF logs, calls
    to nonexistent subroutines are now fatal errors which will stop code
    execution.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/src/perl/lib/OpenSRF.pm b/src/perl/lib/OpenSRF.pm
index 3959bd0..b577ecd 100644
--- a/src/perl/lib/OpenSRF.pm
+++ b/src/perl/lib/OpenSRF.pm
@@ -1,8 +1,6 @@
 package OpenSRF;
-
+use warnings;
 use strict;
-use vars qw/$AUTOLOAD/;
-
 use Error;
 require UNIVERSAL::require;
 
@@ -22,43 +20,6 @@ our $VERSION = "2.12";
 
 =head1 METHODS
 
-=head2 AUTOLOAD
-
-Traps methods calls for methods that have not been defined so they
-don't propagate up the class hierarchy.
-
-=cut
-
-sub AUTOLOAD {
-	my $self = shift;
-	my $type = ref($self) || $self;
-	my $name = $AUTOLOAD;
-	my $otype = ref $self;
-
-	my ($package, $filename, $line) = caller;
-	my ($package1, $filename1, $line1) = caller(1);
-	my ($package2, $filename2, $line2) = caller(2);
-	my ($package3, $filename3, $line3) = caller(3);
-	my ($package4, $filename4, $line4) = caller(4);
-	my ($package5, $filename5, $line5) = caller(5);
-	$name =~ s/.*://;   # strip fully-qualified portion
-	warn <<"	WARN";
-****
-** ${name}() isn't there.  Please create me somewhere (like in $type)!
-** Error at $package ($filename), line $line
-** Call Stack (5 deep):
-** 	$package1 ($filename1), line $line1
-** 	$package2 ($filename2), line $line2
-** 	$package3 ($filename3), line $line3
-** 	$package4 ($filename4), line $line4
-** 	$package5 ($filename5), line $line5
-** Object type was $otype
-****
-	WARN
-}
-
-
-
 =head2 alert_abstract
 
 This method is called by abstract methods to ensure that the process

-----------------------------------------------------------------------

Summary of changes:
 src/perl/lib/OpenSRF.pm |   41 +----------------------------------------
 1 files changed, 1 insertions(+), 40 deletions(-)


hooks/post-receive
-- 
OpenSRF


More information about the opensrf-commits mailing list