schrieb:
> Hi,
>
> When an array is created in the native code and returned to java is it
> returned by reference or by copy?
>
> Sorry for not being able to find the answer to this very basic question
> in the standard places.
>
>
> Aaron Fude
>
Well I don't think that either is the correct answer. From your native
point of view you only have an "identifer" representing your
java-object. That's why you always act on the enviroment-variable. So
the situation is that you always only hold a reference in your
C(++)-Code to the real java-object. The bad thing about those
"identifers" is that they can be different each time a native method is
called for each object.
Hoped that this helped you a bit (further I hope that I didn't tell you
rubbish - all is afaik)
Christian