[MacRuby] #1321: ObjcC/C++ exception thrown but not caught on NoMethodError
MacRuby
ruby-noreply at macosforge.org
Wed Jun 15 17:55:24 PDT 2011
#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/>
More information about the macruby-tickets
mailing list