Skip Menu |

This queue is for tickets about the Class-Class CPAN distribution.

Report information
The Basics
Id: 42710
Status: new
Priority: 10/
Queue: Class-Class

People
Owner: Nobody in particular
Requestors: JKRAMER [...] cpan.org
Cc:
AdminCc:

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



Subject: Calling DESTROY on parent classes which might not be defined
In line 188 and 189 of the current version of Class::Class, the module reblesses itself with a parent class and then calls the method DESTROY on itself, which might not be defined (e.g. in the module Pragmatic). Replacing line 189 with the following line fixes the problem: $self->DESTROY if($self->can('DESTROY'));