[jifty-devel] Classloader's loader

Gaal Yahas gaal at forum2.org
Wed Oct 18 05:39:25 EDT 2006


Bitten again by a silently failing module, I found that the "require"
called by the classloader is not the one provided by UNIVERSAL::require,
but rather that of Module::Pluggable. So UNIVERSAL::require::ERROR is
not set, and compilation failures are ignored.

This is probably not as intended. I'm not just committing a simple fix ($@
should still be valid) because it looks like the classloader is interested
in the module's return value -- which implies getting UNIVERSAL::require
back. Could someone advise what the proper course is here?

In the meanwhile, if you have a custom class that looks like it's loaded
for some behaviors, but gives you the defaults for others, this may be
your problem.

-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/


More information about the jifty-devel mailing list