This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: C++ and Java CNI: Check Java references
>>>>> "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