Hi everybody,

I'm currently working on Android NDK, porting my libs, and I'm using
SWIG (Simplified Wrapper and Interface Generator) that is a great tool
to generate JNI code around my C/C++ headers for Java.

However, there is a big issue using it on Android, 'cause of
incomplete JNI support : 'Weak Global References' are missing.
Unfortunatly, SWIG is waiting for a full compatible Oracle/Sun JVM,
and use this feature with its 'director' option (for proxy class
creation).

For now, I comment each time, in a (kind of) bad way, the use of weak
global references in my generated C/C++ wrapper files (4 lines in my
case). I think it is really a shame that we can't use (one of) the
best wrapper with Android NDK just for one missing feature.

I read that Google Team will add it in future release :
"NewWeakGlobalRef and DeleteWeakGlobalRef  are not implemented. The VM
supports weak references, but not JNI "weak global" references. These
will be supported in a future release."
(http://android.git.kernel.org/?p=platform/
dalvik.git;a=blob_plain;f=docs/jni-tips.html;hb=HEAD)

So my question is, does anybody know when 'Weak Global References'
will appear in Android NDK ?


Best regards,
GoG

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to