Skip Menu |

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

Report information
The Basics
Id: 124104
Status: open
Priority: 0/
Queue: Class-MethodMaker

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

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



Subject: array element isset test broken on 5.27.8
Date: Tue, 16 Jan 2018 19:11:06 +0000
To: bug-Class-MethodMaker [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
A recent bugfix in bleadperl, commit 6661956a23de82b41adc406200054293d6d7aded, which is due to be released in Perl 5.27.8, causes Class-MethodMaker to fail one of its tests. The failing test is for an isset call on an element of an array property. It fails because an earlier call to retrieve the whole array value now has the side effect of causing all array elements to exist. Note that the concept of non-existence of array elements in the array's index range is discouraged. -zefram
On Tue Jan 16 14:11:18 2018, zefram@fysh.org wrote: Show quoted text
> A recent bugfix in bleadperl, commit > 6661956a23de82b41adc406200054293d6d7aded, which is due to be released > in Perl 5.27.8, causes Class-MethodMaker to fail one of its tests. > The failing test is for an isset call on an element of an array property. > It fails because an earlier call to retrieve the whole array value now > has the side effect of causing all array elements to exist. Note that > the concept of non-existence of array elements in the array's index > range is discouraged. > > -zefram
Some output from blead prove: ##### [Class-MethodMaker-2.24] 572 $ ~/testing/blead/bin/prove -I~/testing/blead/lib -Iblib/lib -v t/array.t t/array.t .. 1..438 # Running under perl version 5.027008 for linux # Current time local: Sun Jan 21 21:06:56 2018 # Current time GMT: Mon Jan 22 02:06:56 2018 # Using Test.pm version 1.31 Can't locate loadable object for module Class::MethodMaker in @INC (@INC contains: /home/jkeenan/.cpanm/work/1516583216.5321/Class-MethodMaker-2.24/t/../lib /home/jkeenan/.cpanm/work/1516583216.5321/Class-MethodMaker-2.24/t /home/jkeenan/.cpanm/work/1516583216.5321/Class-MethodMaker-2.24/~/testing/blead/lib /home/jkeenan/.cpanm/work/1516583216.5321/Class-MethodMaker-2.24/blib/lib /home/jkeenan/testing/blead/lib/perl5/site_perl/5.27.8/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/site_perl/5.27.8 /home/jkeenan/testing/blead/lib/perl5/5.27.8/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/5.27.8) at t/array.t line 43. Compilation failed in require at t/array.t line 43. BEGIN failed--compilation aborted at t/array.t line 43. Dubious, test returned 2 (wstat 512, 0x200) Failed 438/438 subtests Test Summary Report ------------------- t/array.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 438 tests but ran 0. Files=1, Tests=0, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.07 cusr 0.01 csys = 0.09 CPU) Result: FAIL #####
Subject: Re: [rt.cpan.org #124104] array element isset test broken on 5.27.8
Date: Mon, 22 Jan 2018 03:21:30 +0000
To: James E Keenan via RT <bug-Class-MethodMaker [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
James E Keenan via RT wrote: Show quoted text
>Can't locate loadable object for module Class::MethodMaker in @INC
That's not the BBC issue. It can't find the XS object because you failed to put the blib directories into @INC, and if that wasn't on your mind then you may also have failed to populate blib by building. -zefram
On 2018-01-16 14:11:18, zefram@fysh.org wrote: Show quoted text
> A recent bugfix in bleadperl, commit > 6661956a23de82b41adc406200054293d6d7aded, which is due to be released > in Perl 5.27.8, causes Class-MethodMaker to fail one of its tests. > The failing test is for an isset call on an element of an array property. > It fails because an earlier call to retrieve the whole array value now > has the side effect of causing all array elements to exist. Note that > the concept of non-existence of array elements in the array's index > range is discouraged. >
The tests pass again. I tried perl5.27.8-157-gef80cd9 See also: http://matrix.cpantesters.org/?dist=Class-MethodMaker%202.24;perl=5.27.9;reports=1#sl=7,1