Re: JavaBridge
Re: JavaBridge
- Subject: Re: JavaBridge
- From: John Timmer <email@hidden>
- Date: Tue, 04 Dec 2001 14:02:21 -0500
I've successfully gotten a "not too big, not too complex" Cocoa/Java
application working (three windows, a few sheets, lots of file reading, and
printing). I've not tried anything more challenging than that at the
moment, though.
In my experience, there are a couple of bugs that I've run into with the
bridge, but they're all VERY repeatable (beware of creating >15 NSTabStops
more than once!). I've also heard/read of other problems, though I've yet
to come across them myself. I've not had problems with things tanking at
random spots in my code, as you apparently have.
If you're planning on making a career out of Cocoa, I don't think anything
can save you from Obj-C at this point. For the foreseeable future, it's
going to be faster, more full featured, less buggy, etc. If you're just
doing this as time permits (like me), the Java bridge generally works well
enough to get most things done. Just file as many bugs as you can find, so
that there's hope for the future.
Jay
>
Is it just me or isn't JavaBridge really working???
>
>
I'm trying to do my "first, not too big, not too complex cocoa
>
application" using Java. However, it looks like some disease is
>
infecting the application, causing:
>
>
- Lots of segfaults/bus errors.
>
- Unexpected exceptions and errors, like AbstractMethodError (yes I
>
cleaned and rebuild the target... one hundred times...),
>
NullPointerException (from affected final members...)...
>
- And my favorite one:
>
jobjc_lookupObjCObject(): returning garbage collected java ref for objc
>
object of class XXX
>
>
Obviously, those bugs are completely random, they are frequent, but
>
really "reproducible" (I nevertheless found some method: Do some action
>
once. If the app does not crash, do it again...).
>
>
So, have I become completely incompetent?
>
>
Has someone met the same problems?
>
Has someone successfully accomplished a full, working, stable Cocoa-Java
>
application?
>
Has someone some magical incantation that will save me from ObjectiveC?
>
>
An answer from JavaBridge team would be greatly appreciated to clarify
>
the situation (please, tell me: "Yes, those symptoms are induced by some
>
horrible bugs, but don't worry, next OS X release will fix them
>
all!!!"). I just want to be able to work.
References: | |
| >JavaBridge (From: Julien Dufour <email@hidden>) |