quickie about visibility

Nic Ferrier nferrier@tapsellferrier.co.uk
Tue Jan 22 19:21:00 GMT 2002


Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> >T::someX creates a new S and then calls a method that is only visible 
> >to the C++ layer. 
> > 
> >I need to do this because I have some types that I'm trying to hide 
> >from Java, I need to expose them across class boundaries though so I 
> >was going to have the CNI of one class set them on another via a C++ 
> >method not visible to the Java code. 
> > 
> > 
> >Anyone got any idea how to do this? 
> > 
>> 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?
Nic


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /