Skip Menu |

This queue is for tickets about the Module-Pluggable CPAN distribution.

Report information
The Basics
Id: 13402
Status: resolved
Priority: 0/
Queue: Module-Pluggable

People
Owner: simonw [...] cpan.org
Requestors: claco [...] chrislaco.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.8
Fixed in: (no value)



Subject: Instantiate Should ->can() First
In some situations, a plugin in a given namespace may be missing the method new, or the method in sub_name called when instantiate is set. While this is a programming error, it could also accidentally wreak havok on other otherwise working plugins. It would be nice if M::P looked for the specified instantiator sub before trying to call it and adding it to the plugins. In cases where the sub is missing, just skip the module. I can trap the "Can't locate object method 'new'" errors, but no further plugis will get loaded.
Fixed in 2.9 Thanks for the heads up