🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17471

Re: JNI: supplying parameters to calls into the JVM

#17471
From: Alan Bellingham
Date: Tue, 10 Nov 1998 00:00
24 lines
1152 bytes
alanb@episys.com (Alan Bellingham) wrote:

>OK, first of all, I'm a complete Java novice, but here goes.

[snip]

>   jstring Temp = ... ;
>   jobject RetObj = m_Env->CallObjectMethod(m_Object, ID, Temp ) ;

However, 

   jvalue args[1] ;
   args[0].l = Temp ;
   jobject RetObj = m_Env->CallObjectMethodA(m_Object, ID, args ) ;

works.

Hmmm. I spent I don't know how long hitting my head on this - post the
question, and the problem quietly sidles out of the way. It must have
got scared.

Alan Bellingham
-- 
alanb@episys.com
Technical Details
Message-ID: <364a7018.357301141@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <364966d2.354927638@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b8090ce4837c71c6
X-Google-Attributes: gidf74b3,public
From: alanb@episys.com (Alan Bellingham)
Subject: Re: JNI: supplying parameters to calls into the JVM
Date: 1998/11/10
Message-ID: <364a7018.357301141@forums.borland.com>
X-Deja-AN: 410367122
Content-Transfer-Encoding: 7bit
References: <364966d2.354927638@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: alanb@episys.com
Newsgroups: borland.public.jbuilder.java.language