Skip navigation.
 
mlUsing Java objects in ObjC
FROM : Joris Kluivers
DATE : Sun Dec 26 16:25:59 2004

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

Related mailsAuthorDate
No related mails found.