Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: JNI return jobjectArray Date: Mon, 01 Oct 2012 08:32:44 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <8ae235a8-d70a-45c8-b94f-8f7190b940f1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 1 Oct 2012 15:32:47 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="6988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vBdI5yIF3nyg1dwbGB14d+9Ro+JsefOM=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: <8ae235a8-d70a-45c8-b94f-8f7190b940f1@googlegroups.com> Cancel-Lock: sha1:dtHo5yLK4yQlNsiUjcHvF7uGgPs= Xref: csiph.com comp.lang.java.programmer:19012 On 9/30/2012 9:14 PM, Lew wrote: > I am ignorant of the ways of JNI, so my question might be extraordinarily > off base. > I'm pretty ignorant of JNI also, but I'm making the assumption that Chris Upal is correct (he posted after you and I; I was just making an educated guess). It *must* work the same was as native Java, since there's no other way for Java to handle it. The OP is just confused about reference vs value, and hoping Java has an "out." It doesn't, and he'll have to adjust his thinking.