Skip Menu |

This queue is for tickets about the DBICx-MapMaker CPAN distribution.

Report information
The Basics
Id: 64394
Status: resolved
Priority: 0/
Queue: DBICx-MapMaker

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

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: 0.03



Subject: Compile-time coercion error under Moose 1.21
Can not use DBICx::MapMaker any more. I have not worked on my code in a while, but DBICx::MM used to work. Now that I'm at Moose 1.21, I'm getting the following error message about left_class coercion to Str. The simple repro case is t/00-load.t. C:\strawberry\cpan\build\DBICx-MapMaker-0.02-mjd5Nm\t>perl -I..\lib 00- load.t 1..1 You cannot coerce an attribute (left_class) unless its type (Str) has a coercion at ..\lib/DBICx/MapMaker.pm line 14 require DBICx/MapMaker.pm called at (eval 4) line 2 main::BEGIN() called at ..\lib/DBICx/MapMaker.pm line 0 eval {...} called at ..\lib/DBICx/MapMaker.pm line 0 eval 'package main; use DBICx::MapMaker @{$args[0]}; 1;
Subject: Re: [rt.cpan.org #64394] Compile-time coercion error under Moose 1.21
Date: Tue, 04 Jan 2011 23:44:57 -0600
To: bug-DBICx-MapMaker [...] rt.cpan.org
From: Jonathan Rockway <jon [...] jrock.us>
Thanks, 0.03 uploaded. * On Sun, Jan 02 2011, Len Jaffe via RT wrote: Show quoted text
> Sun Jan 02 04:12:24 2011: Request 64394 was acted upon. > Transaction: Ticket created by LENJAFFE > Queue: DBICx-MapMaker > Subject: Compile-time coercion error under Moose 1.21 > Broken in: 0.02 > Severity: Important > Owner: Nobody > Requestors: LENJAFFE@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=64394 > > > > Can not use DBICx::MapMaker any more. > > I have not worked on my code in a while, but DBICx::MM used to work. > > Now that I'm at Moose 1.21, I'm getting the following error message about left_class coercion to Str. > > The simple repro case is t/00-load.t. > > C:\strawberry\cpan\build\DBICx-MapMaker-0.02-mjd5Nm\t>perl -I..\lib 00- > load.t > 1..1 > You cannot coerce an attribute (left_class) unless its type (Str) has a > coercion at ..\lib/DBICx/MapMaker.pm line 14 > require DBICx/MapMaker.pm called at (eval 4) line 2 > main::BEGIN() called at ..\lib/DBICx/MapMaker.pm line 0 > eval {...} called at ..\lib/DBICx/MapMaker.pm line 0 > eval 'package main; > use DBICx::MapMaker @{$args[0]}; > 1; > >
-- print just => another => perl => hacker => if $,=$"
Works. Thank you.