[MacRuby] #1321: ObjcC/C++ exception thrown but not caught on NoMethodError
#1321: ObjcC/C++ exception thrown but not caught on NoMethodError ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: reduction ------------------------------------+--------------------------------------- {{{ framework 'Cocoa' NSDictionary.alloc.initWithKeysAndObjects(1,2,nil) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1321> MacRuby <http://macruby.org/>
#1321: ObjcC/C++ exception thrown but not caught on NoMethodError ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: reduction ------------------------------------+--------------------------------------- Comment(by lsansonetti@…): This happens when #method_missing tries to construct the NameError exception, by sending #inspect on the receiver, a Hash that hasn't been initialized, which raises a pure Objective-C exception inside nshash_inspect. I believe we have at least 2 bugs covering the same problem in the tracker. Basically we need to wrap all Objective-C calls inside exception handlers in all registered methods of NSArray.m, NSString.m and NSDictionary.m. -- Ticket URL: <http://www.macruby.org/trac/ticket/1321#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby