RE: native methods in inner classes (long)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Raif S. Naffah wrote:
> * the header file generated by the RI-1.5 emits a signature 
> for the native method of an inner class that looks like so:
> 
>    JNIEXPORT void JNICALL Java_OC_IC_natInit

This looks like a bug in javah. [1] claims they fixed it.

> my questions are:
> 
> 1. do VMs handle differently native method names depending on 
> whether they are defined in an inner class or not?

No, at the VM and JNI level there is no difference between inner and
outer classes. It is simply a matter of name mangling, which is fully
defined in the JNI specification. It really is kind of embarassing that
we've all had the same bugs in this ;-)

Regards,
Jeroen

[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6257087
 



[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux