Skip Menu |

This queue is for tickets about the Sub-WrapPackages CPAN distribution.

Report information
The Basics
Id: 13746
Status: resolved
Worked: 3 hours (180 min)
Priority: 0/
Queue: Sub-WrapPackages

People
Owner: Nobody in particular
Requestors: tom@eborcom.com (no email address)
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Sub-WrapPackages doesn't deal with inherited methods
As discussed last week, here's a bug report for Sub::WrapPackages. This module does not report on methods called on a package that exist in a superclass. For example (rough pseudo-code): package Fruit; sub eat { 'yum yum' } package Banana; use base 'Fruit'; sub peel { 'ready to eat' } If I wrap the Banana package and call $banana->peel, Sub::WrapPackages logs this. But it won't log calls to $banana->eat. Arguably this isn't a bug, but it would be useful behaviour, perhaps as an optional switch. Tom
From: tom [...] eborcom.com
On Mon Jul 18 05:26:33 2005, guest wrote: Show quoted text
> This module does not report on methods called on a package that exist > in a superclass.
Your fix in version 1.1 works for classes defined in separate files (hooray!), but it seems declaring multiple classes in the same file still breaks. I've attached a test and test library that demonstrate this. Tom
Download extras.tar.gz
application/x-gzip 392b

Message body not shown because it is not plain text.

Thanks, fixed in 1.2