This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: quickie about visibility


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]