Item676: package Assert; causes namespace collisions
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: major
Using a package named "Assert" instead of "Foswiki::Assert" or other causes it to fly into any other Assert.pm in @INC and explode.
Since this is a pertty generic module name, perhaps it should be namespaced. Note that Assert.pm
does include Foswiki-specific code.
Specifically this causes problems when old TWiki /lib/s are lurking in the @INC, presumably because of the nasty ref trickery Assert performs.
This possibly also applies to Monitor and TWiki.
Indeed. Can't do much about TWiki, but Assert, Monitor and Unit should probably be renamed something less generic. I called them that originally because I wanted to release them to CPAN, but gave up on that a long time ago.
Would like to target this for 2.0
--
CrawfordCurrie - 29 Jun 2010