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


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


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