In jni code I attempt the subj. This works well on the simulator and
on some devices, but fails with InstantiationException on some other
devices.
What's the reason of such a behavior? Is it configurable?
Thanks.
That sounds like a Java question, since if you tried to instantiate an
abstract class in C++, it simply wouldn't compile.
This being the NDK list, you might have better luck asking on another
list, where the topic is Java.
Tim
Even in Java, you shouldn't have been able to instantiate an abstract
class. Sounds like you found a bug in your first attempt and should
not count on that happening again.
probably whether checkjni is turned on, I beleive that it is normally on by default on emulators and off by default on devices but some manufacturers may have it turned on in a device. If your class is fully defined then instantiating it will probably do no harm but if checkjni is on then it will probably crash. The only solution is to not try to create abstract classes, jni is for making faster or more portable code it is not for bypassing jvm checks
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/7ouyuLqsf_EJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
Everyone trying start a developer community at tabletmodz.com so us developers can have a resource to refer to. These google groups are becoming hard to navigate get a response from people or even getting your question out to people this site is fr developers only not the end user. Check it out
www.Krzyview.com
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
I love your responses sometimes, Dianne.
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1388 / Virus Database: 1516/3734 - Release Date: 06/29/11