Article View: borland.public.jbuilder.java.language
Article #14504Re: Q: Returning null from JNI method?
From: Gabriel Lima
Date: Fri, 27 Aug 1999 00:00
Date: Fri, 27 Aug 1999 00:00
14 lines
1157 bytes
1157 bytes
> If you can't get a better answer, why don't you just return a specific
> string and if you java code sees that string it puts null into the
> variable.
I have implemented it that way for the time being, but I really donοΏ½t like
it, as
it is a patch. Besides, I can only do it because I have made the native
methods private, and have public wrappers, as I had to do additional
processing
on the Java side anyway. But your suggestion would not be applicable if the
methods were public.
Thanks however a lot to Kobus for the suggestion :-)
Gabriel
Technical Details
Message-ID:
<37C6F4DA.F0F3FB91@enea.se>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37C58C9D.62A27FEC@enea.se> <37C66E8E.1A217CF1@iname.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,a44fb18b0c4ec7a2 X-Google-Attributes: gidf74b3,public From: Gabriel Lima <Gabriel.Lima@enea.se> Subject: Re: Q: Returning null from JNI method? Date: 1999/08/27 Message-ID: <37C6F4DA.F0F3FB91@enea.se> X-Deja-AN: 517756402 Content-Transfer-Encoding: 8bit References: <37C58C9D.62A27FEC@enea.se> <37C66E8E.1A217CF1@iname.com> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language