Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 57144
Status: resolved
Priority: 0/
Queue: Mouse

People
Owner: Nobody in particular
Requestors: nekoya [...] cpan.org
Cc:
AdminCc:

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



Subject: Mouse stopped at deep lazy_build methods with $@
Download (untitled) / with headers
text/plain 728b
Following code did not work on Mouse 0.56, that worked on Moose 1.02. Eval error at _build_hoge affects msg methods behavior. msg method works well when "hoge" use "default" instead of "lazy_build". Possibly it is not cause by Mouse. It happened on - Perl 5.8.8 - CentOS5.4 x86_64 #!/usr/bin/perl package Hoge; use Mouse; has 'fuga' => ( is => 'rw', isa => 'Str', lazy_build => 1, ); has 'hoge' => ( is => 'rw', isa => 'Str', lazy_build => 1, ); sub build_fuga { shift->hoge; } sub_build_hoge { eval "use Hoge::Hoge"; ## no critic "HOGEEEEE\n"; } sub msg { shift->fuga; } package main; use strict; use warnings; my $hoge = Hoge->new; print $hoge->msg; # segmentation fault
Download (untitled) / with headers
text/plain 114b
Sorry, previous code has some mistake. Show quoted text
> sub build_fuga {
sub _build_fuga { Show quoted text
> sub_build_hoge {
sub _build_hoge {
Download (untitled) / with headers
text/plain 157b
Hi, Nekoya. Thank you for your report. I have released Mouse 0.57 and 0.58 to workaround the reported issue. Regards, -- Goro Fuji (gfx) GFUJI at CPAN.org


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.