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'));