quickie about visibility
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Tue Jan 22 20:10:00 GMT 2002
Jeff Sturm wrote:
>On 2002年1月23日, 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.
More information about the Java
mailing list