C++ and Java CNI: Check Java references
Tue Apr 24 11:23:00 GMT 2001
Mark Mitchell writes:
> >>>>> "Per" == Per Bothner <email@example.com> writes:
> Per> from the source. However, explicit null-pointer checking
> Per> seems to stretch the boundary of appropriate magic re-writes.
> FWIW, I agree with Per. I would prefer not to see this patch
> Instead, I would suggest that CNI programmers use C++ features, i.e.,
> smart pointers, to do the job.
I can see the logic here, but doesn't it amount to a redesign of CNI?
java::io::File::performList (java::io::FilenameFilter *filter,
would become this:
java::io::File::performList (JavaPointer<java::io::FilenameFilter> filter,
Hmm. I guess it doesn't look too awful.
More information about the Java