quickie about visibility
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Tue Jan 22 19:28:00 GMT 2002
Nic Ferrier wrote:
>>You could make them "private native" and use "gcjh --friend" or just
>>make them package-private native because those get mapped to public
>>methods in C++.
>>>>The problem with doing that is that I want to hide the argument list
>from the java code (because the argument won't be something that I can
>express in Java - it's a postgres tuple array). If I declare the
>method at all in the class it's going to need arguments declared isn't
>it?
>
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.
regards
Bryce.
More information about the Java
mailing list