This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: quickie about visibility
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>, java at gcc dot gnu dot org
- Date: Wed, 23 Jan 2002 17:10:55 +1300
- Subject: Re: quickie about visibility
- References: <Pine.LNX.4.10.10201222253240.1387-100000@mars.deadcafe.org>
Jeff Sturm wrote:
>On Wed, 23 Jan 2002, Bryce McKinlay wrote:
>
>>You can not declare a method with non-Java arguments within a Java type.
>>You will have to declare this method outside of "extern "Java"". Perhaps
>>you could declare another, non-Java class which peers the Java class.
>>
>
>Hmm... couldn't the non-java type be concealed as a gnu.gcj.RawData?
>
Sure - you could declare pointer arguments as RawData or even
java.lang.Object and then cast them in the method implementation, but
its a bit ugly and would result in crashes if some Java code ever tried
to call such a method.
regards
Bryce.