Skip Menu |

This queue is for tickets about the Rose-Object CPAN distribution.

Report information
The Basics
Id: 54444
Status: resolved
Priority: 0/
Queue: Rose-Object

People
Owner: Nobody in particular
Requestors: chris [...] masto.com
Cc:
AdminCc:

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



Subject: Rose::HTML::Form failure in Perl debugger (with patch)
I had the same issue as described in bug #51168. I dug around a bit and found that it ends up deep inside of Rose::Object::MakeMethods. Under the debugger, what was formerly being returned as __ANON__ from sub_identity ends up something like "__ANON__[/opt/local/lib/perl5/site_perl/5.10.1/darwin-2level/some/module.pm:123]", leading to attempts to redefine methods. I don't truly understand the guts there, but this simple patch creates the appearance of a fix: --- MakeMethods.pm-orig 2010-02-09 11:13:43.000000000 -0500 +++ MakeMethods.pm 2010-02-09 11:15:02.000000000 -0500 @@ -163,7 +163,7 @@ my($class, $code) = @_; my($mm_class, $name) = $class->sub_identity($code); return 0 unless($class && $name); - return (($mm_class eq $class && $name eq '__ANON__') || + return (($mm_class eq $class && $name =~ /^__ANON__/) || $Made_Method_Custom{$mm_class}{$name}) ? 1 : 0; } I'm hoping you can take a look at some point. Thanks, Chris
Ah ha! You got farther than I did. I've applied your patch and added a test for it. Check out Rose::Object in SVN (revision 2079 or later) and let me know if it all tests pass for you: http://rose.googlecode.com/svn/trunk/modules/Rose-Object
Confirmed fixed. Thanks!
Fixed in Rose::Object 0.857, just uploaded to CPAN.