[jifty-devel] Classloader's loader

Jesse Vincent jesse at bestpractical.com
Thu Oct 19 00:10:20 EDT 2006




On Wed, Oct 18, 2006 at 11:39:25AM +0200, Gaal Yahas wrote:
> 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.

Ooh. thanks for tracking that down!

> 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?

I believe the return value checking was entirely to work around people
not getting their Dispatcher rules right.  We definitely want to be
using UNIVERSAL::require's require and not M::P. (Just to be clear,
we're talking about Jifty::Util->require(), right?




> 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/
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> 

-- 


More information about the jifty-devel mailing list