Re: native methods in inner classes (long)

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

 



Hi,

On 9/20/06, Jeroen Frijters <jeroen@xxxxxxxxxx> wrote:
Raif S. Naffah wrote:
> 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 ;-)


Yes, it is embarassing, especially as I thought I'd implemented that
part of the JNI spec pretty well :)  Looking at it again shows it
specifically mentions handling of underscore (_), semi-colon, open
bracket ([) and forward-slash, and the escape sequence for general
unicode characters.  It doesn't explicitly state the need to handle $,
which is probably why we all missed it...

Anyway, I'll check a patch in for JamVM tonight.

Thanks,

Rob.

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