Subject: | overeager stash diving |
Date: | Thu, 15 Feb 2018 18:03:30 +0000 |
To: | bug-Object-Trampoline [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
The test t/03-Universal-Override.t in Object-Trampoline-1.42 fails
with Perl 5.27.7 and 5.27.8, because of some changed behaviour in
the Carp module. The issue is that some new code in Carp refers
to $UNIVERSAL::isa::VERSION, and so vivifies $UNIVERSAL::{"isa::"}.
The test iterates over %UNIVERSAL::, using each key found as a method
name, and isn't prepared for there to be a key that doesn't syntactically
behave as a method name.
The test is erroneous in using all keys it finds as method names.
It should skip ones that aren't syntactically OK.
The Carp module is likely to stop vivifying that stash, but the test is
erroneous in any case.
-zefram