Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 58046
Status: resolved
Priority: 0/
Queue: Class-Closure

People
Owner: Nobody in particular
Requestors: pagaltzis [...] gmx.de
Cc:
AdminCc:

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



Subject: Uses CHECK block
Currently Class::Closure pushes caller packages onto an array in `import` and creates constructors in those packages at CHECK time. This is a problem in environments like mod_perl or Plack-based apps, where modules are loaded during the run phase. For the time being, I fixed the problem we had with this by simply changing the `import` routine to generate the constructor immediately rather than pushing onto the array. This seems to work just fine. Am I missing something? If not, this should be fixed.
I released the fix for this in 0.30, almost 3 years ago.