[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #23727] NSDictionary with keys of different classes
From: |
Tamas Mahr |
Subject: |
[bug #23727] NSDictionary with keys of different classes |
Date: |
Fri, 27 Jun 2008 15:11:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20071019 Fedora/1.0.9-3.fc6 pango-text SeaMonkey/1.0.9 |
Follow-up Comment #2, bug #23727 (project gnustep):
Thank you for the quick reply!
About question 2:
I have configured and compiled gnustep-make and gnustep-base using the
--enable-native-objc-exceptions. The @try{}@catch{} blocks do catch
exceptions, except if it is raised after a forwardInvocation call.
I have also tried to use the NS_DURING, NS_HANDLER, and NS_ENDHANDLER macros,
with the same results. I think that native exception handling works for me in
the normal way, only not through a forwardInvocation call. Could this be
related to the ffcall library?
my compiler:
gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13)
Copyright (C) 2006 Free Software Foundation, Inc.
gnustep-base-1.14.1 and gnustep-make-2.0.2 is compiled from source.
To justify that it works the following program correctly catches the
exception I raise, but fails to catch the execption comming from the
NSDictionary object.
#include <Foundation/Foundation.h>
int main(){
CREATE_AUTORELEASE_POOL(pool);
NSString *key1 = @"one";
NSNumber *key2 = [NSNumber numberWithInt: 2];
NSString *value1 = @"firstValue";
NSString *value2 = @"secondValue";
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setObject: value1 forKey: key1];
[dict setObject: value2 forKey: key2];
@try {
[NSException raise: @"TestException"
format: @"Just testing"];
}@catch(NSException *e){
NSLog(@"%@", e);
}
@try {
NSLog(@"dictionary: %@", dict);
}@catch (NSException *e){
NSLog(@"%@", e);
}
[pool release];
return 0;
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23727>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/