Using Java objects in ObjC
Using Java objects in ObjC
- Subject: Using Java objects in ObjC
- From: Joris Kluivers <email@hidden>
- Date: Sun, 26 Dec 2004 16:25:59 +0100
Hi,
I'm trying to use some Java objects in my Cocoa application. I can
succesfully create a java object and send messages to it. But when i
try to initiate a object from Java using a constructor which might
throw an exception it still works, unless the constructor actually
throws an exception. Then I get the following error in my run log and
the application quits:
ObjCJava WARNING:
jobjc_jvm_newObject(): constructor with signature (Ljava/lang/String;)V
on class com/kluivers/calendar/Calendar failed (should morph the java
exception)
But i learned in the Java Bridge documentation and some articles i read
on the Java Bridge that Cocoa automatically morphs java Exceptions into
NSException objects.
Is this a bug? Shouldn't my cocoa application be able to catch this
exception?
Is there anyone who did get this working?
Joris Kluivers
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden