C++ and Java CNI: Check Java references

Tom Tromey tromey@redhat.com
Tue Apr 24 15:24:00 GMT 2001


>>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:

>> jobjectArray
>> java::io::File::performList (JavaPointer<java::io::FilenameFilter> filter, 
>> JavaPointer<java::io::FileFilter> fileFilter, 
>> JavaPointer<java::lang::Class> result_type)

Interestingly, Andrew's example is incorrect.  You also need
JavaPointer<jobjectArray>.  I guess this method isn't as easy as it
looks at first.

Richard> You'd need to do the JavaPointer wrapping inside the functions.

Yeah, I agree.  What sort of performance penalty can we expect from
that?

As a practical matter, using JavaPointer means going over about 60KLOC
making this change.  That will be fun.

Tom



More information about the Java mailing list