[Rubycocoa-devel 775] Re: Problem with Mocha (reduced to simple test script)

Back to archive index

kimura wataru kimur****@i*****
Wed Feb 28 00:05:20 JST 2007


Hi Chris,

This error occurs from an infinite loop of method invoking. RubyCocoa
adds "standardUserDefaults" method to ObjectiveC-C with auto-override 
mechanism (implemented in osx/objc/oc_import.rb).

   Objectie-C (NSUserDefaults)        Ruby (metaclass)
               <- standardUserDefaults --
               -- standardUserDefaults ->
               <- standardUserDefaults --
               -- standardUserDefaults ->
                           :

This behavior is a bug of RubyCocoa. RubyCocoa shold NOT treat a 
metaclass of Cocoa classes as a subclass of Cocoa classes. I think
we can fix the problem soon.

Thanks, 

On Mon, 26 Feb 2007 08:52:57 +0000, Chris Mcgrath wrote:
> Hi there,
> 
> I tried sending this yesterday, but don't see it yet, so apologies if 
> nearly identical emails occur.
> 
> I'm seeing a SystemStackError problem using Mocha with RubyCocoa for 
> testing. The attached test script contains just the parts of Mocha 
> needed to cause the problem. This works fine on 0.10.1, but started 
> failing sometime since then and is still failing now. I assume it's 
> something to do with libffi from running the script with -d, but I 
> don't know enough to figure out what.
> 
> Cheers,
> 
> Chris

-- 
kimura wataru



More information about the Rubycocoa-devel mailing list
Back to archive index