Fix reinitializing anon metaclasses.
authorDave Rolsky <autarch@urth.org>
Tue, 9 Feb 2010 22:41:12 +0000 (16:41 -0600)
committerDave Rolsky <autarch@urth.org>
Tue, 9 Feb 2010 22:41:12 +0000 (16:41 -0600)
commitcf600c8302ae51cada4085a8513ff349a66773d1
tree46eba8a1c7f3532472b5c848047eeadc1b4bc995
parent9f41127cc577d387a3610a38b7dc20cf269f3a6f
Fix reinitializing anon metaclasses.

The fix is to explicitly check to see if an anon class being reinitialized is
in the anon class cache. If it is, we remove the old metaclass and replace it
with the new one.
Changes
lib/Moose/Meta/Class.pm
t/010_basics/014_create_anon.t
t/050_metaclasses/051_metarole_on_anon.t [new file with mode: 0644]