Skip Menu |

This queue is for tickets about the Method-Lexical CPAN distribution.

Report information
The Basics
Id: 87218
Status: resolved
Priority: 0/
Queue: Method-Lexical

People
Owner: CHOCOLATE [...] cpan.org
Requestors: perl [...] toby.ink
Cc:
AdminCc:

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



Subject: Method::Lexical is broken under Perl 5.18.
In particular, Perl 5.17.4 was the last working version. Only one test case is failing, the aptly named "fail.t".
Looks like the failing tests are just regexp matches on error messages that seem to have changed. not ok 6 - method call on a non-reference literal passed through to pp_method_named # Failed test 'method call on a non-reference literal passed through to pp_method_named' # at t/fail.t line 46. # 'Can't locate object method "private" via package "42" (perhaps you forgot to load "42"?) at t/fail.t line 45. # ' # doesn't match '(?^:^Can't call method "private" without a package or object reference )' not ok 7 - method call on a non-reference variable passed through to pp_method_named # Failed test 'method call on a non-reference variable passed through to pp_method_named' # at t/fail.t line 49. # 'Can't locate object method "private" via package "42" (perhaps you forgot to load "42"?) at t/fail.t line 48. # ' # doesn't match '(?^:^Can't call method "private" without a package or object reference )' not ok 8 - method call on a non-reference literal passed through to pp_method # Failed test 'method call on a non-reference literal passed through to pp_method' # at t/fail.t line 52. # 'Can't locate object method "private" via package "42" (perhaps you forgot to load "42"?) at t/fail.t line 51. # ' # doesn't match '(?^:^Can't call method "private" without a package or object reference )' not ok 9 - method call on a non-reference variable passed through to pp_method # Failed test 'method call on a non-reference variable passed through to pp_method' # at t/fail.t line 55. # 'Can't locate object method "private" via package "42" (perhaps you forgot to load "42"?) at t/fail.t line 54. # ' # doesn't match '(?^:^Can't call method "private" without a package or object reference )'
I've sent a pull req on github that fixes the test case.
Thanks! This should be fixed in 0.24. I can't test it against perl 5.18 at the moment, so if you spot any issues, please let me know. Thanks again, chocolateboy.
Installed fine here. Build log attached in case you're interested.
Subject: build.log
Download build.log
application/octet-stream 5.2k

Message body not shown because it is not plain text.

Looks good. Cheers!