Skip Menu |

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

Report information
The Basics
Id: 74897
Status: resolved
Priority: 0/
Queue: Class-Load

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

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



Subject: %INC bug workaround breaks C:L
Date: Sun, 12 Feb 2012 17:50:17 +0000
To: bug-Class-Load [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
Module::Runtime 0.012, just released to CPAN, contains a workaround for the old (pre-5.9) Perl core bug regarding re-requiring modules that contain errors. Turns out the workaround breaks an assumption made (and helpfully commented) in Class::Load::load_optional_class(). I reckon the right fix is for load_optional_class() to use Module::Runtime::use_package_optimistically() to distinguish between missing and present-but-erroneous modules. Full discussion at <https://rt.cpan.org/Ticket/Display.html?id=74895>, where the breakage was reported as a possible bug in Module::Runtime. Additionally, if use_package_optimistically() turns out to be inadequate for your needs, this is the kind of area where I'd be open to adding more interfaces to Module::Runtime. -zefram
Fix in 0.17 appears to work. Bug can be closed.